nixpkgs/pkgs/development/python-modules/google_cloud_storage/default.nix
Sirio Balmelli 6ca34e4e36 python3Packages.google_cloud_storage: 1.28.1 -> 1.29.0
Signed-off-by: Sirio Balmelli <sirio@b-ad.ch>
2020-07-07 22:14:50 -07:00

46 lines
948 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, google_resumable_media
, google_api_core
, google_cloud_core
, pytest
, mock
, setuptools
}:
buildPythonPackage rec {
pname = "google-cloud-storage";
version = "1.29.0";
src = fetchPypi {
inherit pname version;
sha256 = "07lsdrxypz5i21x99m1zkxwiax89q80v0av6ak0k4fkys48spj0m";
};
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 ];
};
}