python310Packages.crc: init at 4.2.0

Signed-off-by: Jack Leightcap <jack@leightcap.com>
This commit is contained in:
Jack Leightcap 2023-05-10 16:02:35 -04:00
parent 5b8d1d61e9
commit 8d311b355d
No known key found for this signature in database
2 changed files with 37 additions and 0 deletions

View File

@ -0,0 +1,35 @@
{ 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 ];
};
}

View File

@ -2099,6 +2099,8 @@ self: super: with self; {
crayons = callPackage ../development/python-modules/crayons { };
crc = callPackage ../development/python-modules/crc { };
crc16 = callPackage ../development/python-modules/crc16 { };
crc32c = callPackage ../development/python-modules/crc32c { };