Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

50 lines
1.0 KiB
Nix

{
lib,
buildPythonPackage,
cffi,
crc32c,
fetchFromGitHub,
pytestCheckHook,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "google-crc32c";
version = "1.7.1";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "googleapis";
repo = "python-crc32c";
tag = "v${version}";
hash = "sha256-YXXoEXnJckF1kqpLXbIbJEcW+le6aeKyc6Y6xmf0SSw=";
};
build-system = [ setuptools ];
buildInputs = [ crc32c ];
dependencies = [ cffi ];
LDFLAGS = "-L${crc32c}/lib";
CFLAGS = "-I${crc32c}/include";
nativeCheckInputs = [
pytestCheckHook
crc32c
];
pythonImportsCheck = [ "google_crc32c" ];
meta = with lib; {
description = "Wrapper the google/crc32c hardware-based implementation of the CRC32C hashing algorithm";
homepage = "https://github.com/googleapis/python-crc32c";
changelog = "https://github.com/googleapis/python-crc32c/blob/v${version}/CHANGELOG.md";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ freezeboy ];
};
}