push sheeet
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s

This commit is contained in:
Dark Steveneq
2025-10-09 14:15:47 +02:00
commit 646b892680
49168 changed files with 5897842 additions and 0 deletions

View File

@@ -0,0 +1,73 @@
{
lib,
aiohttp,
brotli,
buildPythonPackage,
fetchPypi,
google-auth,
google-cloud-testutils,
google-crc32c,
mock,
pytest-asyncio,
pytestCheckHook,
pythonOlder,
requests,
setuptools,
}:
buildPythonPackage rec {
pname = "google-resumable-media";
version = "2.7.2";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchPypi {
pname = "google_resumable_media";
inherit version;
hash = "sha256-UoCu1GKfK2C4R7DUL5hX/Uk1wRryZnRN8z2AdMrpL+A=";
};
build-system = [ setuptools ];
dependencies = [
google-auth
google-crc32c
];
optional-dependencies = {
requests = [ requests ];
aiohttp = [ aiohttp ];
};
nativeCheckInputs = [
brotli
google-cloud-testutils
mock
pytest-asyncio
pytestCheckHook
]
++ optional-dependencies.requests;
preCheck = ''
# prevent shadowing imports
rm -r google
# fixture 'authorized_transport' not found
rm tests/system/requests/test_upload.py
# requires network
rm tests/system/requests/test_download.py
'';
pythonImportsCheck = [
"google._async_resumable_media"
"google.resumable_media"
];
meta = with lib; {
description = "Utilities for Google Media Downloads and Resumable Uploads";
homepage = "https://github.com/GoogleCloudPlatform/google-resumable-media-python";
changelog = "https://github.com/googleapis/google-resumable-media-python/blob/v${version}/CHANGELOG.md";
license = licenses.asl20;
maintainers = [ ];
};
}