python310Packages.google-cloud-datastore: disable on older Python releases

- add optional-dependencies
This commit is contained in:
Fabian Affolter 2022-10-20 08:30:35 +02:00 committed by GitHub
parent 097aeaa976
commit 40cc6d4969
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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