2021-01-25 09:26:54 +01:00
|
|
|
{ lib
|
2018-11-02 20:10:51 +01:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2021-01-06 10:46:48 +01:00
|
|
|
, google-api-core
|
|
|
|
, google-cloud-core
|
2021-01-05 11:06:18 +01:00
|
|
|
, libcst
|
|
|
|
, proto-plus
|
2018-11-02 20:10:51 +01:00
|
|
|
, mock
|
2021-01-05 11:06:18 +01:00
|
|
|
, pytestCheckHook
|
|
|
|
, pytest-asyncio
|
2021-01-06 10:46:48 +01:00
|
|
|
, google-cloud-testutils
|
2018-11-02 20:10:51 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "google-cloud-datastore";
|
2021-06-06 21:54:10 +02:00
|
|
|
version = "2.1.3";
|
2018-11-02 20:10:51 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-06-18 23:47:18 +02:00
|
|
|
sha256 = "e7a510759b9d55ff63c983e3c42cbf5c35f9b7310f4d611ebe3697da6576bcb4";
|
2018-11-02 20:10:51 +01:00
|
|
|
};
|
|
|
|
|
2021-06-21 09:09:46 +02:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
google-api-core
|
|
|
|
google-cloud-core
|
|
|
|
libcst
|
|
|
|
proto-plus
|
|
|
|
];
|
2018-11-02 20:10:51 +01:00
|
|
|
|
2021-06-21 09:09:46 +02:00
|
|
|
checkInputs = [
|
|
|
|
google-cloud-testutils
|
|
|
|
mock
|
|
|
|
pytestCheckHook
|
|
|
|
pytest-asyncio
|
|
|
|
];
|
2021-01-05 11:06:18 +01:00
|
|
|
|
|
|
|
preCheck = ''
|
|
|
|
# directory shadows imports
|
2020-03-18 23:21:12 +01:00
|
|
|
rm -r google
|
2018-11-02 20:10:51 +01:00
|
|
|
'';
|
|
|
|
|
2021-06-21 09:09:46 +02:00
|
|
|
disabledTestPaths = [
|
|
|
|
# Requires credentials
|
|
|
|
"tests/system/test_system.py"
|
|
|
|
];
|
|
|
|
|
2021-01-05 11:06:18 +01:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"google.cloud.datastore"
|
|
|
|
"google.cloud.datastore_admin_v1"
|
|
|
|
"google.cloud.datastore_v1"
|
|
|
|
];
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2018-11-02 20:10:51 +01:00
|
|
|
description = "Google Cloud Datastore API client library";
|
2021-01-05 11:06:18 +01:00
|
|
|
homepage = "https://github.com/googleapis/python-datastore";
|
2018-11-02 20:10:51 +01:00
|
|
|
license = licenses.asl20;
|
2021-01-05 11:06:18 +01:00
|
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
2018-11-02 20:10:51 +01:00
|
|
|
};
|
|
|
|
}
|