2017-09-05 09:16:41 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pythonOlder
|
|
|
|
, chardet
|
|
|
|
, multidict
|
|
|
|
, async-timeout
|
|
|
|
, yarl
|
2018-02-02 14:13:31 +00:00
|
|
|
, idna-ssl
|
2017-09-05 09:16:41 +00:00
|
|
|
, pytest
|
|
|
|
, gunicorn
|
|
|
|
, pytest-raisesregexp
|
2018-02-02 14:13:31 +00:00
|
|
|
, pytest-mock
|
2017-09-05 09:16:41 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aiohttp";
|
2018-02-02 14:13:31 +00:00
|
|
|
version = "2.3.10";
|
2017-09-05 09:16:41 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-02-02 14:13:31 +00:00
|
|
|
sha256 = "8adda6583ba438a4c70693374e10b60168663ffa6564c5c75d3c7a9055290964";
|
2017-09-05 09:16:41 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.4";
|
|
|
|
|
2018-02-02 14:13:31 +00:00
|
|
|
checkInputs = [ pytest gunicorn pytest-raisesregexp pytest-mock ];
|
2017-09-05 09:16:41 +00:00
|
|
|
|
2018-02-02 14:13:31 +00:00
|
|
|
propagatedBuildInputs = [ async-timeout chardet multidict yarl ]
|
|
|
|
++ lib.optional (pythonOlder "3.7") idna-ssl;
|
2017-09-05 09:16:41 +00:00
|
|
|
|
2018-02-02 14:13:31 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Asynchronous HTTP Client/Server for Python and asyncio";
|
|
|
|
license = licenses.asl20;
|
2017-09-05 09:16:41 +00:00
|
|
|
homepage = https://github.com/KeepSafe/aiohttp/;
|
2018-02-02 14:13:31 +00:00
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
2017-09-05 09:16:41 +00:00
|
|
|
};
|
2018-01-23 16:30:09 +00:00
|
|
|
}
|