From aee3490bad7fc0abd1d5ad2a4ea94e02f985a605 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 30 Sep 2024 09:17:58 +0200 Subject: [PATCH] python3Packages.google-crc32c: switch to pypa builder - add changelog --- .../python-modules/google-crc32c/default.nix | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/google-crc32c/default.nix b/pkgs/development/python-modules/google-crc32c/default.nix index 72fa96622357..c4dd1040ff64 100644 --- a/pkgs/development/python-modules/google-crc32c/default.nix +++ b/pkgs/development/python-modules/google-crc32c/default.nix @@ -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 ]; };