2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
google-api-core,
|
|
|
|
google-cloud-core,
|
|
|
|
google-cloud-testutils,
|
|
|
|
libcst,
|
|
|
|
mock,
|
|
|
|
proto-plus,
|
|
|
|
protobuf,
|
|
|
|
pytest-asyncio,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
2024-09-19 14:19:46 +00:00
|
|
|
setuptools,
|
2021-01-09 10:05:03 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "google-cloud-datastore";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "2.20.1";
|
|
|
|
pyproject = true;
|
2022-10-21 18:38:19 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2021-01-09 10:05:03 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
2024-09-19 14:19:46 +00:00
|
|
|
pname = "google_cloud_datastore";
|
|
|
|
inherit version;
|
|
|
|
hash = "sha256-B5ULnIhlCHxWX0X6P916BdTD2ZrfeeEMP1lv8Ip9m7o=";
|
2021-01-09 10:05:03 +00:00
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
build-system = [ setuptools ];
|
|
|
|
|
|
|
|
dependencies = [
|
2021-06-28 23:13:55 +00:00
|
|
|
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
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
optional-dependencies = {
|
2024-06-05 15:53:02 +00:00
|
|
|
libcst = [ libcst ];
|
2022-10-21 18:38:19 +00:00
|
|
|
};
|
|
|
|
|
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;
|
2024-07-31 10:19:44 +00:00
|
|
|
maintainers = [ ];
|
2021-01-09 10:05:03 +00:00
|
|
|
};
|
|
|
|
}
|