50 lines
1.0 KiB
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, attrs
, chardet
, multidict
, async-timeout
, yarl
, idna-ssl
2019-01-10 15:11:46 +01:00
, typing-extensions
, pytestrunner
, pytest
, gunicorn
2018-06-23 12:02:20 +02:00
, pytest-timeout
2019-01-10 15:11:46 +01:00
, async_generator
, pytest_xdist
, pytestcov
, pytest-mock
, trustme
, brotlipy
}:
buildPythonPackage rec {
pname = "aiohttp";
2019-01-11 23:50:59 +01:00
version = "3.5.3";
src = fetchPypi {
inherit pname version;
2019-01-11 23:50:59 +01:00
sha256 = "7967b760d0e96eb7ac6b20a9143112ce5c03a00b4f74d8a5ee66c8e88e6b6800";
};
disabled = pythonOlder "3.5";
2019-01-10 15:11:46 +01:00
checkInputs = [
pytestrunner pytest gunicorn pytest-timeout async_generator pytest_xdist
pytest-mock pytestcov trustme brotlipy
];
propagatedBuildInputs = [ attrs chardet multidict async-timeout yarl ]
2019-01-10 15:11:46 +01:00
++ lib.optionals (pythonOlder "3.7") [ idna-ssl typing-extensions ];
2018-06-23 12:02:20 +02:00
meta = with lib; {
description = "Asynchronous HTTP Client/Server for Python and asyncio";
license = licenses.asl20;
homepage = https://github.com/aio-libs/aiohttp;
maintainers = with maintainers; [ dotlambda ];
};
}