From 2ae853805bfc33a0fd6cd0bf21800f557f4fcae0 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 28 Dec 2022 16:36:55 +0100 Subject: [PATCH] python310Packages.google-cloud-runtimeconfig: disable on older Python releases --- .../google-cloud-runtimeconfig/default.nix | 20 +++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/google-cloud-runtimeconfig/default.nix b/pkgs/development/python-modules/google-cloud-runtimeconfig/default.nix index 000d91139269..15e80892d9cb 100644 --- a/pkgs/development/python-modules/google-cloud-runtimeconfig/default.nix +++ b/pkgs/development/python-modules/google-cloud-runtimeconfig/default.nix @@ -5,23 +5,35 @@ , google-cloud-core , mock , pytestCheckHook +, pythonOlder }: buildPythonPackage rec { pname = "google-cloud-runtimeconfig"; version = "0.33.2"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - sha256 = "sha256-MPmyvm2FSrUzb1y5i4xl5Cqea6sxixLoZ7V1hxNi7hw="; + hash = "sha256-MPmyvm2FSrUzb1y5i4xl5Cqea6sxixLoZ7V1hxNi7hw="; }; - propagatedBuildInputs = [ google-api-core google-cloud-core ]; + propagatedBuildInputs = [ + google-api-core + google-cloud-core + ]; - checkInputs = [ mock pytestCheckHook ]; + checkInputs = [ + mock + pytestCheckHook + ]; # Client tests require credentials - disabledTests = [ "client_options" ]; + disabledTests = [ + "client_options" + ]; # prevent google directory from shadowing google imports preCheck = ''