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