2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2021-01-09 10:05:03 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, google-api-core
|
|
|
|
, google-cloud-core
|
2023-01-11 07:51:40 +00:00
|
|
|
, google-cloud-testutils
|
2021-01-09 10:05:03 +00:00
|
|
|
, libcst
|
|
|
|
, mock
|
2023-01-11 07:51:40 +00:00
|
|
|
, proto-plus
|
|
|
|
, protobuf
|
2021-01-09 10:05:03 +00:00
|
|
|
, pytest-asyncio
|
2023-01-11 07:51:40 +00:00
|
|
|
, pytestCheckHook
|
2022-10-21 18:38:19 +00:00
|
|
|
, pythonOlder
|
2021-01-09 10:05:03 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "google-cloud-datastore";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "2.18.0";
|
2022-10-21 18:38:19 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2021-01-09 10:05:03 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-Y7MbZ23LJ4amUNI9Mk2PiGxOFFhq/dDP5uJgpz8SRI4=";
|
2021-01-09 10:05:03 +00:00
|
|
|
};
|
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
google-api-core
|
|
|
|
google-cloud-core
|
|
|
|
proto-plus
|
2023-01-11 07:51:40 +00:00
|
|
|
protobuf
|
|
|
|
] ++ google-api-core.optional-dependencies.grpc;
|
2021-01-09 10:05:03 +00:00
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
passthru.optional-dependencies = {
|
|
|
|
libcst = [
|
|
|
|
libcst
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-06-28 23:13:55 +00:00
|
|
|
google-cloud-testutils
|
|
|
|
mock
|
|
|
|
pytestCheckHook
|
|
|
|
pytest-asyncio
|
|
|
|
];
|
2021-01-09 10:05:03 +00:00
|
|
|
|
|
|
|
preCheck = ''
|
|
|
|
# directory shadows imports
|
|
|
|
rm -r google
|
|
|
|
'';
|
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
disabledTestPaths = [
|
|
|
|
# Requires credentials
|
2023-02-02 18:25:31 +00:00
|
|
|
"tests/system/test_aggregation_query.py"
|
2021-12-06 16:07:01 +00:00
|
|
|
"tests/system/test_allocate_reserve_ids.py"
|
|
|
|
"tests/system/test_query.py"
|
|
|
|
"tests/system/test_put.py"
|
2022-09-09 14:08:57 +00:00
|
|
|
"tests/system/test_read_consistency.py"
|
2021-12-06 16:07:01 +00:00
|
|
|
"tests/system/test_transaction.py"
|
2021-06-28 23:13:55 +00:00
|
|
|
];
|
|
|
|
|
2021-01-09 10:05:03 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"google.cloud.datastore"
|
|
|
|
"google.cloud.datastore_admin_v1"
|
|
|
|
"google.cloud.datastore_v1"
|
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2021-01-09 10:05:03 +00:00
|
|
|
description = "Google Cloud Datastore API client library";
|
|
|
|
homepage = "https://github.com/googleapis/python-datastore";
|
2023-01-11 07:51:40 +00:00
|
|
|
changelog = "https://github.com/googleapis/python-datastore/blob/v${version}/CHANGELOG.md";
|
2021-01-09 10:05:03 +00:00
|
|
|
license = licenses.asl20;
|
2023-08-04 22:07:22 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2021-01-09 10:05:03 +00:00
|
|
|
};
|
|
|
|
}
|