From 632a0423b0b672b67c3fbae94331b585f03ada60 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 20 May 2022 22:12:54 +0200 Subject: [PATCH] python310Packages.google-cloud-asset: disable on older Python releases --- .../python-modules/google-cloud-asset/default.nix | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/google-cloud-asset/default.nix b/pkgs/development/python-modules/google-cloud-asset/default.nix index f8b9c0408e8b..0e8281f41847 100644 --- a/pkgs/development/python-modules/google-cloud-asset/default.nix +++ b/pkgs/development/python-modules/google-cloud-asset/default.nix @@ -11,16 +11,20 @@ , proto-plus , pytest-asyncio , pytestCheckHook +, pythonOlder , mock }: buildPythonPackage rec { pname = "google-cloud-asset"; version = "3.9.0"; + format = "setuptools"; + + disabled = pythonOlder "3.6"; src = fetchPypi { inherit pname version; - sha256 = "sha256-DMRBAzGlByjcdLr/HnVxFxbNWK1TbYFpYKEjDdzfEeg="; + hash = "sha256-DMRBAzGlByjcdLr/HnVxFxbNWK1TbYFpYKEjDdzfEeg="; }; propagatedBuildInputs = [ @@ -33,7 +37,12 @@ buildPythonPackage rec { proto-plus ]; - checkInputs = [ google-cloud-testutils mock pytest-asyncio pytestCheckHook ]; + checkInputs = [ + google-cloud-testutils + mock + pytest-asyncio + pytestCheckHook + ]; pythonImportsCheck = [ "google.cloud.asset"