Files
nixpkgs/pkgs/development/python-modules/google-crc32c/default.nix
T
Martin Weinelt f1165d1367 python3Packages.google-crc32c: 1.7.1 -> 1.8.0
https://github.com/googleapis/python-crc32c/blob/v1.8.0/CHANGELOG.md

This commit was automatically generated using update-python-libraries.
2026-02-01 17:19:13 +01:00

49 lines
1006 B
Nix

{
lib,
buildPythonPackage,
cffi,
crc32c,
fetchFromGitHub,
pytestCheckHook,
setuptools,
}:
buildPythonPackage rec {
pname = "google-crc32c";
version = "1.8.0";
pyproject = true;
src = fetchFromGitHub {
owner = "googleapis";
repo = "python-crc32c";
tag = "v${version}";
hash = "sha256-bNTWyOWie1tPiptJ6NPCyC5kzcCpgOZ0w5hKVw07iwc=";
};
build-system = [ setuptools ];
buildInputs = [ crc32c ];
dependencies = [ cffi ];
env = {
LDFLAGS = "-L${crc32c}/lib";
CFLAGS = "-I${crc32c}/include";
};
nativeCheckInputs = [
pytestCheckHook
crc32c
];
pythonImportsCheck = [ "google_crc32c" ];
meta = {
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/${src.tag}/CHANGELOG.md";
license = with lib.licenses; [ asl20 ];
maintainers = [ ];
};
}