nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6 setuptools,
7}:
8
9buildPythonPackage rec {
10 pname = "crc32c";
11 version = "2.8";
12 pyproject = true;
13
14 src = fetchFromGitHub {
15 owner = "ICRAR";
16 repo = "crc32c";
17 tag = "v${version}";
18 hash = "sha256-LPiKms0fVHmgIiwUNWGTAdGByV+Pmh9dRaF/tro2rKo=";
19 };
20
21 build-system = [ setuptools ];
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 changelog = "https://github.com/ICRAR/crc32c/blob/master/CHANGELOG.md";
29 license = lib.licenses.lgpl21;
30 maintainers = with lib.maintainers; [ bcdarwin ];
31 };
32}