python310Packages.google-resumable-media: add optional-dependencies
This commit is contained in:
parent
20c6cf51d6
commit
72d9e7b7e8
|
@ -1,27 +1,49 @@
|
|||
{ lib
|
||||
, aiohttp
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, google-auth
|
||||
, google-cloud-testutils
|
||||
, google-crc32c
|
||||
, mock
|
||||
, pytestCheckHook
|
||||
, pytest-asyncio
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, requests
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "google-resumable-media";
|
||||
version = "2.4.0";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-jVUYUC+SuezISsRneb1PCWlOyzujij58pzeobRXLyh8=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ google-auth google-crc32c requests ];
|
||||
propagatedBuildInputs = [
|
||||
google-auth
|
||||
google-crc32c
|
||||
];
|
||||
|
||||
checkInputs = [ google-cloud-testutils mock pytestCheckHook pytest-asyncio ];
|
||||
passthru.optional-dependencies = {
|
||||
requests = [
|
||||
requests
|
||||
];
|
||||
aiohttp = [
|
||||
aiohttp
|
||||
];
|
||||
};
|
||||
|
||||
checkInputs = [
|
||||
google-cloud-testutils
|
||||
mock
|
||||
pytest-asyncio
|
||||
pytestCheckHook
|
||||
] ++ passthru.optional-dependencies.requests;
|
||||
|
||||
preCheck = ''
|
||||
# prevent shadowing imports
|
||||
|
|
Loading…
Reference in a new issue