From a7e8df5a987da1a547e35680038806dee82fbbac Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 6 Jan 2024 15:22:32 +0100 Subject: [PATCH] python311Packages.google-cloud-compute: refactor --- .../python-modules/google-cloud-compute/default.nix | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/google-cloud-compute/default.nix b/pkgs/development/python-modules/google-cloud-compute/default.nix index 1828d7920ea2..2f58338113a9 100644 --- a/pkgs/development/python-modules/google-cloud-compute/default.nix +++ b/pkgs/development/python-modules/google-cloud-compute/default.nix @@ -8,12 +8,13 @@ , protobuf , pytest-asyncio , pytestCheckHook +, setuptools }: buildPythonPackage rec { pname = "google-cloud-compute"; version = "1.15.0"; - format = "setuptools"; + pyproject = true; disabled = pythonOlder "3.7"; @@ -22,6 +23,10 @@ buildPythonPackage rec { hash = "sha256-+mda6vBMYnpELNMDIZbW82rWhEO6MnyXZ6a/vECkKyE="; }; + nativeBuildInputs = [ + setuptools + ]; + propagatedBuildInputs = [ google-api-core proto-plus @@ -39,8 +44,8 @@ buildPythonPackage rec { "google.cloud.compute_v1" ]; - # disable tests that require credentials disabledTestPaths = [ + # Disable tests that require credentials "tests/system/test_addresses.py" "tests/system/test_instance_group.py" "tests/system/test_pagination.py" @@ -49,8 +54,8 @@ buildPythonPackage rec { meta = with lib; { description = "API Client library for Google Cloud Compute"; - homepage = "https://github.com/googleapis/python-compute"; - changelog = "https://github.com/googleapis/python-compute/blob/v${version}/CHANGELOG.md"; + homepage = "https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-compute"; + changelog = "https://github.com/googleapis/google-cloud-python/blob/google-cloud-compute-v${version}/packages/google-cloud-compute/CHANGELOG.md"; license = licenses.asl20; maintainers = with maintainers; [ jpetrucciani ]; };