From def8bc92a92df8f461c3758a9cf7ff5a52c7d144 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 4 Oct 2022 09:02:45 +0200 Subject: [PATCH] python310Packages.google-cloud-iot: disable on older Python releases --- .../google-cloud-iot/default.nix | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/google-cloud-iot/default.nix b/pkgs/development/python-modules/google-cloud-iot/default.nix index 53be1c859f5b..c1ece06f828c 100644 --- a/pkgs/development/python-modules/google-cloud-iot/default.nix +++ b/pkgs/development/python-modules/google-cloud-iot/default.nix @@ -7,21 +7,34 @@ , proto-plus , pytestCheckHook , pytest-asyncio +, pythonOlder , mock }: buildPythonPackage rec { pname = "google-cloud-iot"; version = "2.6.3"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - sha256 = "sha256-UB1kxnKobjR1xpezanpgrVg7bU7sA5r2sn7fRbwSrdY="; + hash = "sha256-UB1kxnKobjR1xpezanpgrVg7bU7sA5r2sn7fRbwSrdY="; }; - propagatedBuildInputs = [ grpc-google-iam-v1 google-api-core libcst proto-plus ]; + propagatedBuildInputs = [ + grpc-google-iam-v1 + google-api-core + libcst + proto-plus + ]; - checkInputs = [ mock pytestCheckHook pytest-asyncio ]; + checkInputs = [ + mock + pytestCheckHook + pytest-asyncio + ]; disabledTests = [ # requires credentials