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