24 buildPythonPackage rec {
26 version = "3.7.4.post0";
27 disabled = pythonOlder "3.6";
30 inherit pname version;
31 sha256 = "493d3299ebe5f5a7c66b9819eacdcfbbaaf1a8e84911ddffcdc48888497afecf";
35 substituteInPlace setup.cfg --replace " --cov=aiohttp" ""
38 propagatedBuildInputs = [
45 ] ++ lib.optionals (pythonOlder "3.7") [
66 # Disable tests that require network access
67 "test_mark_formdata_as_processed"
68 ] ++ lib.optionals stdenv.is32bit [
70 ] ++ lib.optionals stdenv.isDarwin [
71 "test_addresses" # https://github.com/aio-libs/aiohttp/issues/3572, remove >= v4.0.0
75 __darwinAllowLocalNetworking = true;
77 # aiohttp in current folder shadows installed version
78 # Probably because we run `python -m pytest` instead of `pytest` in the hook.
84 description = "Asynchronous HTTP Client/Server for Python and asyncio";
85 license = licenses.asl20;
86 homepage = "https://github.com/aio-libs/aiohttp";
87 maintainers = with maintainers; [ dotlambda ];