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-03-18 21:53:09 +00:00
|
|
|
version = "1.26.0";
|
2018-11-02 18:47:18 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-03-18 21:53:09 +00:00
|
|
|
sha256 = "0caxqf6vda89cmc81fxhmfk3n61aypqz2sswnbsylzf436rsxpzz";
|
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";
|
|
|
|
homepage = https://github.com/GoogleCloudPlatform/google-cloud-python;
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|