02dab4ab5c
Long term we should move everything over to `pyproject = true`, but in the mean time we can work towards deprecating the implicit `format` paremeter. cc https://github.com/NixOS/nixpkgs/issues/253154 cc @mweinelt @figsoda
32 lines
872 B
Nix
32 lines
872 B
Nix
{ lib, buildPythonPackage, fetchFromGitHub, cffi, crc32c, pytestCheckHook }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "google-crc32c";
|
|
version = "1.5.0";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "googleapis";
|
|
repo = "python-crc32c";
|
|
rev = "v${version}";
|
|
hash = "sha256-Tx7UBIwKzSBbpuqdqGiXTbmBE+1MDRknVe3Zee0UHKQ=";
|
|
};
|
|
|
|
buildInputs = [ crc32c ];
|
|
|
|
propagatedBuildInputs = [ cffi ];
|
|
|
|
LDFLAGS = "-L${crc32c}/lib";
|
|
CFLAGS = "-I${crc32c}/include";
|
|
|
|
nativeCheckInputs = [ pytestCheckHook crc32c ];
|
|
|
|
pythonImportsCheck = [ "google_crc32c" ];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/googleapis/python-crc32c";
|
|
description = "Wrapper the google/crc32c hardware-based implementation of the CRC32C hashing algorithm";
|
|
license = with licenses; [ asl20 ];
|
|
maintainers = with maintainers; [ freezeboy ];
|
|
};
|
|
}
|