1{ lib
2, buildPythonPackage
3, fetchPypi
4, pythonOlder
5, wrapt
6, aioitertools
7, aiohttp
8, botocore
9}:
10
11buildPythonPackage rec {
12 pname = "aiobotocore";
13 version = "1.4.2";
14 disabled = pythonOlder "3.7";
15
16 src = fetchPypi {
17 inherit pname version;
18 sha256 = "c2f4ef325aaa839e9e2a53346b4c1c203656783a4985ab36fd4c2a9ef2dc1d2b";
19 };
20
21 # relax version constraints: aiobotocore works with newer botocore versions
22 # the pinning used to match some `extras_require` we're not using.
23 postPatch = ''
24 substituteInPlace setup.py --replace 'botocore>=1.20.106,<1.20.107' 'botocore'
25 '';
26
27 propagatedBuildInputs = [ wrapt aiohttp aioitertools botocore ];
28
29 # tests not distributed on pypi
30 doCheck = false;
31 pythonImportsCheck = [ "aiobotocore" ];
32
33 meta = with lib; {
34 description = "Python client for amazon services";
35 license = licenses.asl20;
36 homepage = "https://github.com/aio-libs/aiobotocore";
37 maintainers = with maintainers; [ teh ];
38 };
39}