Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
2.3 kB · 106 lines
Nix
at master
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107{ lib, buildPythonPackage, fetchFromGitHub, google-auth, google-cloud-core, google-cloud-iam, google-cloud-kms, google-cloud-testutils, google-resumable-media, mock, protobuf, pytestCheckHook, pytest-asyncio, pythonOlder, requests, setuptools,}:
buildPythonPackage rec { pname = "google-cloud-storage"; version = "3.3.0"; pyproject = true;
src = fetchFromGitHub { owner = "googleapis"; repo = "python-storage"; tag = "v${version}"; hash = "sha256-I0wC/BV8fJr3JW1nyq2TPJZlZaT4+h2lJBdGTttSzRo="; };
pythonRelaxDeps = [ "google-auth" ];
build-system = [ setuptools ];
dependencies = [ google-auth google-cloud-core google-resumable-media requests ];
optional-dependencies = { protobuf = [ protobuf ]; };
nativeCheckInputs = [ google-cloud-iam google-cloud-kms google-cloud-testutils mock pytestCheckHook pytest-asyncio ];
enabledTestPaths = [ "tests/unit/" "tests/system/" ];
disabledTests = [ # Disable tests which require credentials and network access "create" "download" "get" "post" "test_anonymous_client_access_to_public_bucket" "test_build_api_url" "test_ctor_mtls" "test_ctor_w_api_endpoint_override" "test_ctor_w_custom_endpoint_use_auth" "test_hmac_key_crud" "test_list_buckets" "test_open" "test_restore_bucket" "test_set_api_request_attr" "upload" ];
disabledTestPaths = [ "tests/unit/test_bucket.py" "tests/system/test_blob.py" "tests/system/test_bucket.py" "tests/system/test_fileio.py" "tests/system/test_kms_integration.py" "tests/unit/test_transfer_manager.py" ];
preCheck = '' # prevent google directory from shadowing google imports rm -r google
# requires docker and network rm tests/conformance/test_conformance.py '';
pythonImportsCheck = [ "google.cloud.storage" ];
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 = lib.licenses.asl20; maintainers = with lib.maintainers; [ sarahec ]; };}