2020-12-31 17:04:56 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pythonOlder
|
|
|
|
, wrapt
|
|
|
|
, aioitertools
|
|
|
|
, aiohttp
|
|
|
|
, botocore
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aiobotocore";
|
2021-04-28 11:11:59 +00:00
|
|
|
version = "1.3.0";
|
2020-12-31 17:04:56 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-04-28 11:11:59 +00:00
|
|
|
sha256 = "17pcdi69bwdfw2wv3a0fhira5gimw88sp2wf47yqz50z1ckhv2c1";
|
2020-12-31 17:04:56 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# relax version constraints: aiobotocore works with newer botocore versions
|
|
|
|
# the pinning used to match some `extras_require` we're not using.
|
2021-04-28 11:11:59 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py --replace 'botocore>=1.20.49,<1.20.50' 'botocore'
|
2020-12-31 17:04:56 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ wrapt aiohttp aioitertools botocore ];
|
|
|
|
|
|
|
|
# tests not distributed on pypi
|
|
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "aiobotocore" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2021-04-28 11:11:59 +00:00
|
|
|
description = "Python client for amazon services";
|
2020-12-31 17:04:56 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
homepage = "https://github.com/aio-libs/aiobotocore";
|
|
|
|
maintainers = with maintainers; [ teh ];
|
|
|
|
};
|
|
|
|
}
|