1{ lib 2, buildPythonPackage 3, fetchPypi 4, pythonOlder 5, attrs 6, chardet 7, multidict 8, async-timeout 9, yarl 10, idna-ssl 11, pytest 12, gunicorn 13, pytest-mock 14, async_generator 15, pytestrunner 16, pytest-timeout 17}: 18 19buildPythonPackage rec { 20 pname = "aiohttp"; 21 version = "3.3.2"; 22 23 src = fetchPypi { 24 inherit pname version; 25 sha256 = "f20deec7a3fbaec7b5eb7ad99878427ad2ee4cc16a46732b705e8121cbb3cc12"; 26 }; 27 28 disabled = pythonOlder "3.5"; 29 30 checkInputs = [ pytest gunicorn pytest-mock async_generator pytestrunner pytest-timeout ]; 31 32 propagatedBuildInputs = [ attrs chardet multidict async-timeout yarl ] 33 ++ lib.optional (pythonOlder "3.7") idna-ssl; 34 35 36 # Several test failures. Need to be looked into. 37 doCheck = false; 38 39 meta = with lib; { 40 description = "Asynchronous HTTP Client/Server for Python and asyncio"; 41 license = licenses.asl20; 42 homepage = https://github.com/aio-libs/aiohttp; 43 maintainers = with maintainers; [ dotlambda ]; 44 }; 45}