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