python3Packages.aiohttp: fix build

This commit is contained in:
Frederik Rietdijk 2020-11-30 17:55:00 +01:00
parent 98996d05de
commit 98a0342b78

View file

@ -21,6 +21,7 @@
, brotlipy , brotlipy
, freezegun , freezegun
, isPy38 , isPy38
, re-assert
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@ -37,10 +38,19 @@ buildPythonPackage rec {
checkInputs = [ checkInputs = [
pytestrunner pytestCheckHook gunicorn async_generator pytest_xdist pytestrunner pytestCheckHook gunicorn async_generator pytest_xdist
pytest-mock pytestcov trustme brotlipy freezegun pytest-mock pytestcov trustme brotlipy freezegun
re-assert
]; ];
propagatedBuildInputs = [ attrs chardet multidict async-timeout yarl ] propagatedBuildInputs = [
++ lib.optionals (pythonOlder "3.7") [ idna-ssl typing-extensions ]; attrs
chardet
multidict
async-timeout
typing-extensions
yarl
] ++ lib.optionals (pythonOlder "3.7") [
idna-ssl
];
disabledTests = [ disabledTests = [
# disable tests which attempt to do loopback connections # disable tests which attempt to do loopback connections
@ -54,6 +64,7 @@ buildPythonPackage rec {
"proxy_https_bad_response" "proxy_https_bad_response"
"partially_applied_handler" "partially_applied_handler"
"middleware" "middleware"
"test_mark_formdata_as_processed"
# no longer compatible with pytest>=6 # no longer compatible with pytest>=6
"aiohttp_plugin_async_fixture" "aiohttp_plugin_async_fixture"
] ++ lib.optionals stdenv.is32bit [ ] ++ lib.optionals stdenv.is32bit [