1 { lib, buildPythonPackage, fetchFromGitHub, cffi, crc32c, pytestCheckHook }:
3 buildPythonPackage rec {
4 pname = "google-crc32c";
7 src = fetchFromGitHub {
9 repo = "python-crc32c";
11 sha256 = "058g69yp7x41mv0d84yp31jv64fpm4r25b86rvvqgc6n74w6jj7k";
14 buildInputs = [ crc32c ];
16 propagatedBuildInputs = [ cffi ];
18 LDFLAGS = "-L${crc32c}/lib";
19 CFLAGS = "-I${crc32c}/include";
21 checkInputs = [ pytestCheckHook crc32c ];
23 pythonImportsCheck = [ "google_crc32c" ];
26 homepage = "https://github.com/googleapis/python-crc32c";
27 description = "Wrapper the google/crc32c hardware-based implementation of the CRC32C hashing algorithm";
28 license = with licenses; [ asl20 ];
29 maintainers = with maintainers; [ freezeboy SuperSandro2000 ];