Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 39 lines 959 B view raw
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.3.0"; 14 disabled = pythonOlder "3.7"; 15 16 src = fetchPypi { 17 inherit pname version; 18 sha256 = "17pcdi69bwdfw2wv3a0fhira5gimw88sp2wf47yqz50z1ckhv2c1"; 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.49,<1.20.50' '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}