nixpkgs/pkgs/development/python-modules/aiobotocore/default.nix
2021-09-01 21:23:05 +02:00

39 lines
971 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, wrapt
, aioitertools
, aiohttp
, botocore
}:
buildPythonPackage rec {
pname = "aiobotocore";
version = "1.4.1";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "09f06723d1d69c6d407d9a356ca65ab42a5b7b73a45be4b1ed0ed1a6b6057a9f";
};
# 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.49,<1.20.50' '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 ];
};
}