3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/aiohttp/default.nix

66 lines
1.6 KiB
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, attrs
, chardet
, multidict
, async-timeout
, yarl
, idna-ssl
2019-01-10 14:11:46 +00:00
, typing-extensions
, pytestrunner
, pytest
, gunicorn
2018-06-23 11:02:20 +01:00
, pytest-timeout
2019-01-10 14:11:46 +00:00
, async_generator
, pytest_xdist
, pytestcov
, pytest-mock
, trustme
, brotlipy
, freezegun
}:
buildPythonPackage rec {
pname = "aiohttp";
version = "3.6.2";
src = fetchPypi {
inherit pname version;
sha256 = "09pkw6f1790prnrq0k8cqgnf1qy57ll8lpmc6kld09q7zw4vi6i5";
};
disabled = pythonOlder "3.5";
2019-01-10 14:11:46 +00:00
checkInputs = [
pytestrunner pytest gunicorn pytest-timeout async_generator pytest_xdist
pytest-mock pytestcov trustme brotlipy freezegun
2019-01-10 14:11:46 +00:00
];
propagatedBuildInputs = [ attrs chardet multidict async-timeout yarl ]
2019-01-10 14:11:46 +00:00
++ lib.optionals (pythonOlder "3.7") [ idna-ssl typing-extensions ];
2018-06-23 11:02:20 +01:00
# disable tests which attempt to do loopback connections
2019-08-18 10:35:45 +01:00
checkPhase = ''
cd tests
pytest -k "not get_valid_log_format_exc \
and not test_access_logger_atoms \
and not aiohttp_request_coroutine \
and not server_close_keepalive_connection \
and not connector \
and not client_disconnect \
and not handle_keepalive_on_closed_connection \
and not partially_applied_handler \
and not middleware" \
--ignore=test_connector.py
2019-06-15 07:42:51 +01: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 ];
};
}