2018-11-02 18:47:18 +00:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, google_resumable_media
|
|
|
|
, google_api_core
|
|
|
|
, google_cloud_core
|
|
|
|
, pytest
|
|
|
|
, mock
|
2019-10-10 09:58:58 +01:00
|
|
|
, setuptools
|
2018-11-02 18:47:18 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "google-cloud-storage";
|
2020-06-06 07:47:11 +01:00
|
|
|
version = "1.28.1";
|
2018-11-02 18:47:18 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-06-06 07:47:11 +01:00
|
|
|
sha256 = "a7b5c326e7307a83fa1f1f0ef71aba9ad1f3a2bc6a768401e13fc02369fd8612";
|
2018-11-02 18:47:18 +00:00
|
|
|
};
|
|
|
|
|
2019-10-10 09:58:58 +01:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
google_resumable_media
|
|
|
|
google_api_core
|
|
|
|
google_cloud_core
|
|
|
|
setuptools
|
|
|
|
];
|
2018-11-02 18:47:18 +00:00
|
|
|
checkInputs = [ pytest mock ];
|
|
|
|
|
2020-03-18 21:53:09 +00:00
|
|
|
# remove directory from interferring with importing modules
|
|
|
|
# ignore tests which require credentials
|
2018-11-02 18:47:18 +00:00
|
|
|
checkPhase = ''
|
2020-03-18 21:53:09 +00:00
|
|
|
rm -r google
|
|
|
|
pytest tests/unit -k 'not create'
|
2018-11-02 18:47:18 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Google Cloud Storage API client library";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/GoogleCloudPlatform/google-cloud-python";
|
2018-11-02 18:47:18 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|