python3Packages.aiohttp: 3.5.4 -> 3.6.2

This commit is contained in:
Jonathan Ringer 2019-10-17 01:45:15 -07:00 committed by Frederik Rietdijk
parent 762be1cfc7
commit d59337e806

View file

@ -19,29 +19,41 @@
, pytest-mock , pytest-mock
, trustme , trustme
, brotlipy , brotlipy
, freezegun
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "aiohttp"; pname = "aiohttp";
version = "3.5.4"; version = "3.6.2";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "9c4c83f4fa1938377da32bc2d59379025ceeee8e24b89f72fcbccd8ca22dc9bf"; sha256 = "09pkw6f1790prnrq0k8cqgnf1qy57ll8lpmc6kld09q7zw4vi6i5";
}; };
disabled = pythonOlder "3.5"; disabled = pythonOlder "3.5";
checkInputs = [ checkInputs = [
pytestrunner pytest gunicorn pytest-timeout async_generator pytest_xdist pytestrunner pytest gunicorn pytest-timeout async_generator pytest_xdist
pytest-mock pytestcov trustme brotlipy pytest-mock pytestcov trustme brotlipy freezegun
]; ];
propagatedBuildInputs = [ attrs chardet multidict async-timeout yarl ] propagatedBuildInputs = [ attrs chardet multidict async-timeout yarl ]
++ lib.optionals (pythonOlder "3.7") [ idna-ssl typing-extensions ]; ++ lib.optionals (pythonOlder "3.7") [ idna-ssl typing-extensions ];
# disable tests which attempt to do loopback connections
checkPhase = '' checkPhase = ''
pytest -k "not test__get_valid_log_format_exc and not test_access_logger_atoms" 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
''; '';
meta = with lib; { meta = with lib; {