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