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}: 15 16buildPythonPackage rec { 17 pname = "aiohttp"; 18 version = "3.0.1"; 19 20 src = fetchPypi { 21 inherit pname version; 22 sha256 = "7aee5c0750584946fde40da70f0b28fe769f85182f1171acef18a35fd8ecd221"; 23 }; 24 25 disabled = pythonOlder "3.4"; 26 27 checkInputs = [ pytest gunicorn pytest-mock ]; 28 29 propagatedBuildInputs = [ attrs chardet multidict async-timeout yarl ] 30 ++ lib.optional (pythonOlder "3.7") idna-ssl; 31 32 meta = with lib; { 33 description = "Asynchronous HTTP Client/Server for Python and asyncio"; 34 license = licenses.asl20; 35 homepage = https://github.com/aio-libs/aiohttp; 36 maintainers = with maintainers; [ dotlambda ]; 37 }; 38}