Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at release-18.03 38 lines 801 B view raw
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.9"; 19 20 src = fetchPypi { 21 inherit pname version; 22 sha256 = "281a9fa56b5ce587a2147ec285d18a224942f7e020581afa6cc44d7caecf937b"; 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}