1{ lib
2, buildPythonPackage
3, fetchPypi
4, pythonOlder
5, chardet
6, multidict
7, async-timeout
8, yarl
9, pytest
10, gunicorn
11, pytest-raisesregexp
12}:
13
14buildPythonPackage rec {
15 pname = "aiohttp";
16 version = "2.2.5";
17 name = "${pname}-${version}";
18
19 src = fetchPypi {
20 inherit pname version;
21 sha256 = "af5bfdd164256118a0a306b3f7046e63207d1f8cba73a67dcc0bd858dcfcd3bc";
22 };
23
24 disabled = pythonOlder "3.4";
25
26 doCheck = false; # Too many tests fail.
27
28 checkInputs = [ pytest gunicorn pytest-raisesregexp ];
29 propagatedBuildInputs = [ async-timeout chardet multidict yarl ];
30
31 meta = {
32 description = "Http client/server for asyncio";
33 license = with lib.licenses; [ asl20 ];
34 homepage = https://github.com/KeepSafe/aiohttp/;
35 };
36}