2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2018-11-02 19:38:38 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2021-01-05 22:24:53 +00:00
|
|
|
, aiounittest
|
2021-01-06 09:46:48 +00:00
|
|
|
, google-api-core
|
|
|
|
, google-cloud-testutils
|
|
|
|
, google-cloud-core
|
2021-01-05 22:24:53 +00:00
|
|
|
, mock
|
|
|
|
, proto-plus
|
|
|
|
, pytestCheckHook
|
|
|
|
, pytest-asyncio
|
2018-11-02 19:38:38 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "google-cloud-firestore";
|
2021-01-05 22:24:53 +00:00
|
|
|
version = "2.0.2";
|
2018-11-02 19:38:38 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-01-05 22:24:53 +00:00
|
|
|
sha256 = "1q5s2gpkibnjxal9zrz02jfnazf7rxk0bi0ln5a3di6i47kjnga9";
|
2018-11-02 19:38:38 +00:00
|
|
|
};
|
|
|
|
|
2021-01-05 22:24:53 +00:00
|
|
|
propagatedBuildInputs = [
|
2021-01-06 09:46:48 +00:00
|
|
|
google-api-core
|
|
|
|
google-cloud-core
|
2021-01-05 22:24:53 +00:00
|
|
|
proto-plus
|
|
|
|
];
|
2018-11-02 19:38:38 +00:00
|
|
|
|
2021-01-05 22:24:53 +00:00
|
|
|
checkInputs = [
|
|
|
|
aiounittest
|
2021-01-06 09:46:48 +00:00
|
|
|
google-cloud-testutils
|
2021-01-05 22:24:53 +00:00
|
|
|
mock
|
|
|
|
pytestCheckHook
|
|
|
|
pytest-asyncio
|
|
|
|
];
|
2018-11-02 19:38:38 +00:00
|
|
|
|
2021-01-05 22:24:53 +00:00
|
|
|
preCheck = ''
|
|
|
|
# do not shadow imports
|
|
|
|
rm -r google
|
2018-11-02 19:38:38 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-05 22:24:53 +00:00
|
|
|
pytestFlagsArray = [
|
|
|
|
# tests are broken
|
|
|
|
"--ignore=tests/system/test_system.py"
|
|
|
|
"--ignore=tests/system/test_system_async.py"
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# requires credentials
|
|
|
|
"test_collections"
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"google.cloud.firestore_v1"
|
|
|
|
"google.cloud.firestore_admin_v1"
|
|
|
|
];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-11-02 19:38:38 +00:00
|
|
|
description = "Google Cloud Firestore API client library";
|
2021-01-05 22:24:53 +00:00
|
|
|
homepage = "https://github.com/googleapis/python-firestore";
|
2018-11-02 19:38:38 +00:00
|
|
|
license = licenses.asl20;
|
2021-01-05 22:24:53 +00:00
|
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
2018-11-02 19:38:38 +00:00
|
|
|
};
|
|
|
|
}
|