3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/google-cloud-storage/default.nix

67 lines
1.3 KiB
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchPypi
, pytestCheckHook
, google-auth
, google-cloud-iam
, google-cloud-core
, google-cloud-kms
, google-cloud-testutils
, google-resumable-media
, mock
}:
buildPythonPackage rec {
pname = "google-cloud-storage";
version = "1.38.0";
src = fetchPypi {
inherit pname version;
sha256 = "162011d66f64b8dc5d7936609a5daf0066cc521231546aea02c126a5559446c4";
};
propagatedBuildInputs = [
google-auth
google-cloud-core
google-resumable-media
];
checkInputs = [
google-cloud-iam
google-cloud-kms
google-cloud-testutils
mock
pytestCheckHook
];
# disable tests which require credentials and network access
disabledTests = [
"create"
"download"
"get"
"post"
"test_build_api_url"
"test_ctor_mtls"
"test_open"
];
pytestFlagsArray = [
"--ignore=tests/unit/test_bucket.py"
"--ignore=tests/system/test_system.py"
];
# prevent google directory from shadowing google imports
preCheck = ''
rm -r google
'';
pythonImportsCheck = [ "google.cloud.storage" ];
meta = with lib; {
description = "Google Cloud Storage API client library";
homepage = "https://github.com/googleapis/python-storage";
license = licenses.asl20;
maintainers = with maintainers; [ SuperSandro2000 ];
};
}