1{ stdenv
2, buildPythonPackage
3, fetchPypi
4, google_api_core
5, google_cloud_core
6, pytest
7, mock
8}:
9
10buildPythonPackage rec {
11 pname = "google-cloud-datastore";
12 version = "1.15.0";
13
14 src = fetchPypi {
15 inherit pname version;
16 sha256 = "c94bc357e975ce7bd5e5636497316c1bf4d015891e0ed96df9e7ce901415b94a";
17 };
18
19 checkInputs = [ pytest mock ];
20 propagatedBuildInputs = [ google_api_core google_cloud_core ];
21
22 checkPhase = ''
23 rm -r google
24 pytest tests/unit
25 '';
26
27 meta = with stdenv.lib; {
28 description = "Google Cloud Datastore API client library";
29 homepage = "https://github.com/GoogleCloudPlatform/google-cloud-python";
30 license = licenses.asl20;
31 maintainers = [ maintainers.costrouc ];
32 };
33}