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