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 08:58:58 +00:00
|
|
|
, setuptools
|
2018-11-02 18:47:18 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "google-cloud-storage";
|
2019-12-19 19:31:12 +00:00
|
|
|
version = "1.23.0";
|
2018-11-02 18:47:18 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-12-19 19:31:12 +00:00
|
|
|
sha256 = "c66e876ae9547884fa42566a2ebfec51d280f488d7a058af9611ba90c78bed78";
|
2018-11-02 18:47:18 +00:00
|
|
|
};
|
|
|
|
|
2019-10-10 08:58:58 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
google_resumable_media
|
|
|
|
google_api_core
|
|
|
|
google_cloud_core
|
|
|
|
setuptools
|
|
|
|
];
|
2018-11-02 18:47:18 +00:00
|
|
|
checkInputs = [ pytest mock ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
pytest tests/unit
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Google Cloud Storage API client library";
|
|
|
|
homepage = https://github.com/GoogleCloudPlatform/google-cloud-python;
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|