nixpkgs/pkgs/development/python-modules/crc/default.nix
Jack Leightcap 8d311b355d
python310Packages.crc: init at 4.2.0
Signed-off-by: Jack Leightcap <jack@leightcap.com>
2023-05-11 14:05:07 -04:00

36 lines
831 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "crc";
version = "4.2.0";
format = "pyproject";
src = fetchFromGitHub {
owner = "Nicoretti";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-h/RVMIJX+Lyted0FHNBcKY54EiirSclkBXCpAQSATq8=";
};
nativeBuildInputs = [ poetry-core ];
pythonImportsCheck = [ "crc" ];
nativeCheckInputs = [ pytestCheckHook ];
disabledTestPaths = [ "test/bench" ];
meta = with lib; {
changelog = "https://github.com/Nicoretti/crc/releases/tag/${version}";
description = "Python module for calculating and verifying predefined & custom CRC's";
homepage = "https://nicoretti.github.io/crc/";
license = licenses.bsd2;
maintainers = with maintainers; [ jleightcap ];
};
}