blob: 91e7beeb127b23215798331c73b2c8c832f3331e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
{ lib
, buildPythonPackage
, fetchPypi
, google_resumable_media
, google_api_core
, google_cloud_core
, pytest
, mock
, setuptools
}:
buildPythonPackage rec {
pname = "google-cloud-storage";
version = "1.31.2";
src = fetchPypi {
inherit pname version;
sha256 = "74bbb5b2d0b249de4a52f561435d0c3570ddc19b249653ae588ec0abcc3c81e6";
};
propagatedBuildInputs = [
google_api_core
google_cloud_core
google_resumable_media
setuptools
];
checkInputs = [
mock
pytest
];
# remove directory from interferring with importing modules
# ignore tests which require credentials
checkPhase = ''
rm -r google
pytest tests/unit -k 'not (create or get or post)'
'';
meta = with lib; {
description = "Google Cloud Storage API client library";
homepage = "https://github.com/GoogleCloudPlatform/google-cloud-python";
license = licenses.asl20;
maintainers = with maintainers; [ costrouc ];
};
}
|