python3Packages.aioopenssl: fix tests

This commit is contained in:
Théo Bori
2026-04-01 04:12:49 +02:00
parent a13b458b1a
commit 91481ecf48
@@ -3,6 +3,7 @@
stdenv,
buildPythonPackage,
fetchFromGitHub,
fetchpatch,
# build-system
setuptools,
@@ -34,6 +35,15 @@ buildPythonPackage rec {
nativeCheckInputs = [ pytestCheckHook ];
patches = [
# compatibility with python3.14: set a asyncio event loop for the unit tetsts
(fetchpatch {
name = "fix-asyncio-event-loop.patch";
url = "https://github.com/theobori/aioopenssl/commit/47b1a1e5593fd8c3f4dedcdbc68c17e83d5c88ec.patch";
hash = "sha256-XdoeWS5wqmGDWRObVpjcRLyN7SF2IdVmSAUBD7U4dfI=";
})
];
# Tests that fail in when built in the Darwin sandbox.
disabledTests = lib.optionals stdenv.hostPlatform.isDarwin [
# address already in use