2023-05-10 20:02:35 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, poetry-core
|
|
|
|
, pytestCheckHook
|
2023-07-01 18:30:03 +00:00
|
|
|
, pythonOlder
|
2023-05-10 20:02:35 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "crc";
|
2024-02-14 09:04:51 +00:00
|
|
|
version = "6.1.1";
|
2023-05-10 20:02:35 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
2023-07-01 18:30:03 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
|
2023-05-10 20:02:35 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Nicoretti";
|
|
|
|
repo = pname;
|
|
|
|
rev = "refs/tags/${version}";
|
2024-02-14 09:04:51 +00:00
|
|
|
hash = "sha256-GlXDDG8NZ3Lp0IwYKS0+fZG85uVdo4V8mZnCa+za02U=";
|
2023-05-10 20:02:35 +00:00
|
|
|
};
|
|
|
|
|
2023-07-01 18:30:03 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
poetry-core
|
|
|
|
];
|
2023-05-10 20:02:35 +00:00
|
|
|
|
2023-07-01 18:30:03 +00:00
|
|
|
nativeCheckInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2023-05-10 20:02:35 +00:00
|
|
|
|
2023-07-01 18:30:03 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"crc"
|
|
|
|
];
|
2023-05-10 20:02:35 +00:00
|
|
|
|
2023-07-01 18:30:03 +00:00
|
|
|
disabledTestPaths = [
|
|
|
|
"test/bench"
|
|
|
|
];
|
2023-05-10 20:02:35 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|