nixpkgs/pkgs/development/python-modules/aiohttp/default.nix

46 lines
955 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, attrs
, chardet
, multidict
, async-timeout
, yarl
, idna-ssl
, pytest
, gunicorn
, pytest-mock
2018-04-04 17:31:03 +00:00
, async_generator
2018-06-23 10:02:20 +00:00
, pytestrunner
, pytest-timeout
}:
buildPythonPackage rec {
pname = "aiohttp";
version = "3.4.4";
src = fetchPypi {
inherit pname version;
sha256 = "1ykm6kdjkrg556j0zd7dx2l1rsrbh0d9g27ivr6dmaahz9pyrbsi";
};
disabled = pythonOlder "3.5";
2018-06-23 10:02:20 +00:00
checkInputs = [ pytest gunicorn pytest-mock async_generator pytestrunner pytest-timeout ];
propagatedBuildInputs = [ attrs chardet multidict async-timeout yarl ]
++ lib.optional (pythonOlder "3.7") idna-ssl;
2018-06-23 10:02:20 +00:00
# Several test failures. Need to be looked into.
doCheck = false;
meta = with lib; {
description = "Asynchronous HTTP Client/Server for Python and asyncio";
license = licenses.asl20;
homepage = https://github.com/aio-libs/aiohttp;
maintainers = with maintainers; [ dotlambda ];
};
}