From 40cc6d4969382ae3fc2154079df605d0bb01c412 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 20 Oct 2022 08:30:35 +0200 Subject: [PATCH] python310Packages.google-cloud-datastore: disable on older Python releases - add optional-dependencies --- .../google-cloud-datastore/default.nix | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/google-cloud-datastore/default.nix b/pkgs/development/python-modules/google-cloud-datastore/default.nix index 82f251fa582e..a950f09050c6 100644 --- a/pkgs/development/python-modules/google-cloud-datastore/default.nix +++ b/pkgs/development/python-modules/google-cloud-datastore/default.nix @@ -9,24 +9,33 @@ , pytestCheckHook , pytest-asyncio , google-cloud-testutils +, pythonOlder }: buildPythonPackage rec { pname = "google-cloud-datastore"; version = "2.9.0"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - sha256 = "sha256-8/gmeLpdheW7M9nhM0uTlxrpeRcODSgLVOVKPj9O870="; + hash = "sha256-8/gmeLpdheW7M9nhM0uTlxrpeRcODSgLVOVKPj9O870="; }; propagatedBuildInputs = [ google-api-core google-cloud-core - libcst proto-plus ]; + passthru.optional-dependencies = { + libcst = [ + libcst + ]; + }; + checkInputs = [ google-cloud-testutils mock