1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pythonOlder,
6 pytestCheckHook,
7 setuptools,
8}:
9
10buildPythonPackage rec {
11 version = "2.4";
12 pname = "crc32c";
13 pyproject = true;
14
15 disabled = pythonOlder "3.5";
16
17 src = fetchFromGitHub {
18 owner = "ICRAR";
19 repo = pname;
20 rev = "refs/tags/v${version}";
21 hash = "sha256-rWR2MtTLhqqvgdqEyevg/i8ZHM3OU1bJb27JkBx1J3w=";
22 };
23
24 nativeBuildInputs = [ setuptools ];
25
26 nativeCheckInputs = [ pytestCheckHook ];
27
28 meta = {
29 description = "Python software implementation and hardware API of CRC32C checksum algorithm";
30 homepage = "https://github.com/ICRAR/crc32c";
31 license = lib.licenses.lgpl21;
32 maintainers = with lib.maintainers; [ bcdarwin ];
33 };
34}