Merge pull request #231156 from jleightcap/jl/crc-4.2.0

python310Packages.crc: init at 4.2.0
This commit is contained in:
Martin Weinelt 2023-05-11 22:17:39 +02:00 committed by GitHub
commit 0af87b4399
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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

@ -2109,6 +2109,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 { };