python3Packages.google-crc32c: switch to pypa builder

- add changelog
This commit is contained in:
Fabian Affolter
2024-10-13 11:09:49 +02:00
committed by Martin Weinelt
parent a57e157b92
commit aee3490bad
@@ -1,16 +1,20 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
cffi,
crc32c,
fetchFromGitHub,
pytestCheckHook,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "google-crc32c";
version = "1.6.0";
format = "setuptools";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "googleapis";
@@ -19,9 +23,11 @@ buildPythonPackage rec {
hash = "sha256-uGW4gWIpTVQ+f52WBA9H+K3+sHNa4JdgO9qi1Ds7WEU=";
};
build-system = [ setuptools ];
buildInputs = [ crc32c ];
propagatedBuildInputs = [ cffi ];
dependencies = [ cffi ];
LDFLAGS = "-L${crc32c}/lib";
CFLAGS = "-I${crc32c}/include";
@@ -34,8 +40,9 @@ buildPythonPackage rec {
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";
homepage = "https://github.com/googleapis/python-crc32c";
changelog = "https://github.com/googleapis/python-crc32c/blob/v${version}/CHANGELOG.md";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ freezeboy ];
};