bcb2f287e1
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
34 lines
729 B
Nix
34 lines
729 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pythonOlder,
|
|
pytestCheckHook,
|
|
setuptools
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
version = "2.4";
|
|
pname = "crc32c";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ICRAR";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-rWR2MtTLhqqvgdqEyevg/i8ZHM3OU1bJb27JkBx1J3w=";
|
|
};
|
|
|
|
nativeBuildInputs = [ setuptools ];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
meta = {
|
|
description = "Python software implementation and hardware API of CRC32C checksum algorithm";
|
|
homepage = "https://github.com/ICRAR/crc32c";
|
|
license = lib.licenses.lgpl21;
|
|
maintainers = with lib.maintainers; [ bcdarwin ];
|
|
};
|
|
}
|