3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/google-crc32c/default.nix

32 lines
860 B
Nix
Raw Normal View History

{ lib, buildPythonPackage, fetchFromGitHub, cffi, crc32c, pytestCheckHook }:
2020-09-21 14:10:08 +01:00
buildPythonPackage rec {
pname = "google-crc32c";
version = "1.1.1";
2020-09-21 14:10:08 +01:00
src = fetchFromGitHub {
owner = "googleapis";
repo = "python-crc32c";
rev = "v${version}";
sha256 = "103lqs42b01p6nydjz4id72x7hsrpjyv7g06vrphm8c5g1wa3zp1";
2020-09-21 14:10:08 +01:00
};
buildInputs = [ crc32c ];
2020-09-21 14:10:08 +01:00
propagatedBuildInputs = [ cffi ];
LDFLAGS = "-L${crc32c}/lib";
CFLAGS = "-I${crc32c}/include";
checkInputs = [ pytestCheckHook crc32c ];
2020-09-21 14:10:08 +01:00
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 SuperSandro2000 ];
2020-09-21 14:10:08 +01:00
};
}