python3Packages.aiohttp: fix tests on aarch64-darwin (#417277)

This commit is contained in:
dotlambda
2025-06-16 12:50:19 -07:00
committed by GitHub
2 changed files with 28 additions and 1 deletions
@@ -34,6 +34,7 @@
blockbuster,
freezegun,
gunicorn,
isa-l,
isal,
proxy-py,
pytest-codspeed,
@@ -59,6 +60,10 @@ buildPythonPackage rec {
hash = "sha256-ciZGOOfVXYoLzYNIkota3MXMRMxlztf+mFFo0y9r+Lk=";
};
patches = lib.optionals (!lib.meta.availableOn stdenv.hostPlatform isa-l) [
./remove-isal.patch
];
postPatch = ''
rm -r vendor
patchShebangs tools
@@ -105,7 +110,8 @@ buildPythonPackage rec {
blockbuster
freezegun
gunicorn
isal
# broken on aarch64-darwin
(if lib.meta.availableOn stdenv.hostPlatform isa-l then isal else null)
proxy-py
pytest-codspeed
pytest-cov-stub
@@ -0,0 +1,21 @@
diff --git a/tests/conftest.py b/tests/conftest.py
index 62fb04f2e..bb5b279dd 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -12,7 +12,6 @@ from typing import Any, AsyncIterator, Callable, Generator, Iterator
from unittest import mock
from uuid import uuid4
-import isal.isal_zlib
import pytest
import zlib_ng.zlib_ng
from blockbuster import blockbuster_ctx
@@ -333,7 +332,7 @@ def unused_port_socket() -> Generator[socket.socket, None, None]:
s.close()
-@pytest.fixture(params=[zlib, zlib_ng.zlib_ng, isal.isal_zlib])
+@pytest.fixture(params=[zlib, zlib_ng.zlib_ng])
def parametrize_zlib_backend(
request: pytest.FixtureRequest,
) -> Generator[None, None, None]: