pythonPackages.google_resumable_media: 1.1.0 -> 1.2.0

This commit is contained in:
Sandro Jäckel 2021-01-05 13:31:57 +01:00
parent 27f18cdddf
commit b458130133
No known key found for this signature in database
GPG Key ID: 3AF5A43A3EECC2E5

View File

@ -1,38 +1,46 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, isPy3k
, fetchPypi , fetchPypi
, six , google_auth
, requests , google_cloud_testutils
, setuptools , google_crc32c
, pytest
, mock , mock
, crcmod , pytestCheckHook
, google-crc32c , pytest-asyncio
, requests
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "google-resumable-media"; pname = "google-resumable-media";
version = "1.1.0"; version = "1.2.0";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "dcdab13e95bc534d268f87d5293e482cce5bc86dfce6ca0f2e2e89cbb73ef38c"; sha256 = "0hwxdgsqh6933kp4jkv6hwwdcqs7bgjn9j08ga399njv3s9b367f";
}; };
checkInputs = [ pytest mock ]; propagatedBuildInputs = [ google_auth google_crc32c requests ];
propagatedBuildInputs = [ requests setuptools six ]
++ lib.optional isPy3k google-crc32c
++ lib.optional (!isPy3k) crcmod;
checkPhase = '' checkInputs = [ google_auth google_cloud_testutils mock pytestCheckHook pytest-asyncio ];
py.test tests/unit
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; { meta = with lib; {
description = "Utilities for Google Media Downloads and Resumable Uploads"; description = "Utilities for Google Media Downloads and Resumable Uploads";
homepage = "https://github.com/GoogleCloudPlatform/google-resumable-media-python"; homepage = "https://github.com/GoogleCloudPlatform/google-resumable-media-python";
license = licenses.asl20; license = licenses.asl20;
maintainers = [ maintainers.costrouc ]; maintainers = with maintainers; [ SuperSandro2000 ];
}; };
} }