2017-09-05 11:16:41 +02:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pythonOlder
|
2018-02-12 12:05:12 +01:00
|
|
|
, attrs
|
2017-09-05 11:16:41 +02:00
|
|
|
, chardet
|
|
|
|
, multidict
|
|
|
|
, async-timeout
|
|
|
|
, yarl
|
2018-02-02 15:13:31 +01:00
|
|
|
, idna-ssl
|
2017-09-05 11:16:41 +02:00
|
|
|
, pytest
|
|
|
|
, gunicorn
|
2018-02-02 15:13:31 +01:00
|
|
|
, pytest-mock
|
2018-04-04 19:31:03 +02:00
|
|
|
, async_generator
|
2017-09-05 11:16:41 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aiohttp";
|
2018-06-12 18:25:08 +02:00
|
|
|
version = "3.3.2";
|
2017-09-05 11:16:41 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-06-12 18:25:08 +02:00
|
|
|
sha256 = "f20deec7a3fbaec7b5eb7ad99878427ad2ee4cc16a46732b705e8121cbb3cc12";
|
2017-09-05 11:16:41 +02:00
|
|
|
};
|
|
|
|
|
2018-03-07 22:53:54 +01:00
|
|
|
disabled = pythonOlder "3.5";
|
2017-09-05 11:16:41 +02:00
|
|
|
|
2018-04-04 19:31:03 +02:00
|
|
|
checkInputs = [ pytest gunicorn pytest-mock async_generator ];
|
2017-09-05 11:16:41 +02:00
|
|
|
|
2018-02-12 12:05:12 +01:00
|
|
|
propagatedBuildInputs = [ attrs chardet multidict async-timeout yarl ]
|
2018-02-02 15:13:31 +01:00
|
|
|
++ lib.optional (pythonOlder "3.7") idna-ssl;
|
2017-09-05 11:16:41 +02:00
|
|
|
|
2018-02-02 15:13:31 +01:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Asynchronous HTTP Client/Server for Python and asyncio";
|
|
|
|
license = licenses.asl20;
|
2018-02-12 12:05:12 +01:00
|
|
|
homepage = https://github.com/aio-libs/aiohttp;
|
2018-02-02 15:13:31 +01:00
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
2017-09-05 11:16:41 +02:00
|
|
|
};
|
2018-01-23 17:30:09 +01:00
|
|
|
}
|