My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
nomicon/pkgs/development/python-modules/aiobotocore/default.nix

40 lines
973 B

{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, wrapt
, aioitertools
, aiohttp
, botocore
}:
buildPythonPackage rec {
pname = "aiobotocore";
version = "2.1.0";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "5fd4d7aefa0896fe4dd32815ead8a52ed5ccb8016c7c5743fe8ff71c3c074120";
};
# relax version constraints: aiobotocore works with newer botocore versions
# the pinning used to match some `extras_require` we're not using.
postPatch = ''
substituteInPlace setup.py --replace 'botocore>=1.20.106,<1.20.107' 'botocore'
'';
propagatedBuildInputs = [ wrapt aiohttp aioitertools botocore ];
# tests not distributed on pypi
doCheck = false;
pythonImportsCheck = [ "aiobotocore" ];
meta = with lib; {
description = "Python client for amazon services";
license = licenses.asl20;
homepage = "https://github.com/aio-libs/aiobotocore";
maintainers = with maintainers; [ teh ];
};
}