pythonPackages:google*: Noramlize names by replacing _ with -
This commit is contained in:
31
pkgs/development/python-modules/google-crc32c/default.nix
Normal file
31
pkgs/development/python-modules/google-crc32c/default.nix
Normal file
@@ -0,0 +1,31 @@
|
||||
{ lib, buildPythonPackage, fetchFromGitHub, cffi, crc32c, pytestCheckHook }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "google-crc32c";
|
||||
version = "1.1.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "googleapis";
|
||||
repo = "python-crc32c";
|
||||
rev = "v${version}";
|
||||
sha256 = "0vbidg9yrv9k8xvk8rl43lsf4cg3dci4a9k4srwwrchbxivz1gr6";
|
||||
};
|
||||
|
||||
buildInputs = [ crc32c ];
|
||||
|
||||
propagatedBuildInputs = [ cffi ];
|
||||
|
||||
LDFLAGS = "-L${crc32c}/lib";
|
||||
CFLAGS = "-I${crc32c}/include";
|
||||
|
||||
checkInputs = [ 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 SuperSandro2000 ];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user