diff --git a/pkgs/development/python-modules/google-cloud-storage/default.nix b/pkgs/development/python-modules/google-cloud-storage/default.nix index 84fa74f9e9e0..f0eed472c57b 100644 --- a/pkgs/development/python-modules/google-cloud-storage/default.nix +++ b/pkgs/development/python-modules/google-cloud-storage/default.nix @@ -1,7 +1,7 @@ { lib, buildPythonPackage, - fetchPypi, + fetchFromGitHub, google-auth, google-cloud-core, google-cloud-iam, @@ -18,15 +18,14 @@ buildPythonPackage rec { pname = "google-cloud-storage"; - version = "3.2.0"; + version = "3.3.0"; pyproject = true; - disabled = pythonOlder "3.7"; - - src = fetchPypi { - pname = "google_cloud_storage"; - inherit version; - hash = "sha256-3syoQwdgNvRWMxmMEl0YYf+/R+v1wOO5jcubLbFViWw="; + src = fetchFromGitHub { + owner = "googleapis"; + repo = "python-storage"; + tag = "v${version}"; + hash = "sha256-I0wC/BV8fJr3JW1nyq2TPJZlZaT4+h2lJBdGTttSzRo="; }; pythonRelaxDeps = [ "google-auth" ]; @@ -52,6 +51,11 @@ buildPythonPackage rec { pytestCheckHook ]; + enabledTestPaths = [ + "tests/unit/" + "tests/system/" + ]; + disabledTests = [ # Disable tests which require credentials and network access "create" @@ -90,11 +94,11 @@ buildPythonPackage rec { pythonImportsCheck = [ "google.cloud.storage" ]; - meta = with lib; { + meta = { description = "Google Cloud Storage API client library"; homepage = "https://github.com/googleapis/python-storage"; changelog = "https://github.com/googleapis/python-storage/blob/v${version}/CHANGELOG.md"; - license = licenses.asl20; - maintainers = [ ]; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ sarahec ]; }; }