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