python310Packages.aiohttp: Make failing tests non-strict

Patch originated at Red Hat and was already applied for Fedora.

```
=================================== FAILURES ===================================
__________________________ test_default_loop[pyloop] ___________________________
[XPASS(strict)] No idea why ClientRequest() is constructed out of loop but it calls `asyncio.get_event_loop()`
____________________ TestStreamReader.test_ctor_global_loop ____________________
[XPASS(strict)] No idea why ClientRequest() is constructed out of loop but it calls `asyncio.get_event_loop()`
__________________________ test_set_loop_default_loop __________________________
[XPASS(strict)] No idea why _set_loop() is constructed out of loop but it calls `asyncio.get_event_loop()`
```
This commit is contained in:
Martin Weinelt
2023-02-18 16:05:29 +01:00
parent 38f0121cce
commit 720a248b44
@@ -2,6 +2,7 @@
, stdenv
, buildPythonPackage
, fetchPypi
, fetchpatch
, pythonOlder
# install_requires
, attrs
@@ -39,6 +40,14 @@ buildPythonPackage rec {
sha256 = "3828fb41b7203176b82fe5d699e0d845435f2374750a44b480ea6b930f6be269";
};
patches = [
(fetchpatch {
# https://github.com/aio-libs/aiohttp/pull/7178
url = "https://github.com/aio-libs/aiohttp/commit/5718879cdb6a98bf48810a994b78bc02abaf3e07.patch";
hash = "sha256-4UynkTZOzWzusQ2+MPZszhFA8I/PJNLeT/hHF/fASy8=";
})
];
postPatch = ''
sed -i '/--cov/d' setup.cfg