python311Packages.trio-asyncio: fix build, disable tests

This commit is contained in:
Martin Weinelt 2024-03-18 03:58:42 +01:00
parent 0d565f1e9d
commit 3f38892105
No known key found for this signature in database
GPG key ID: 87C1E9888F856759

View file

@ -2,13 +2,13 @@
, buildPythonPackage
, fetchPypi
, setuptools
, greenlet
, trio
, outcome
, sniffio
, exceptiongroup
, pytest-trio
, pytestCheckHook
, pythonAtLeast
, pythonOlder
}:
@ -27,7 +27,7 @@ buildPythonPackage rec {
postPatch = ''
substituteInPlace setup.py \
--replace "'pytest-runner'" ""
--replace '"pytest-runner"' ""
'';
nativeBuildInputs = [
@ -35,6 +35,7 @@ buildPythonPackage rec {
];
propagatedBuildInputs = [
greenlet
trio
outcome
sniffio
@ -42,6 +43,9 @@ buildPythonPackage rec {
exceptiongroup
];
# RuntimeWarning: Can't run the Python asyncio tests because they're not installed. On a Debian/Ubuntu system, you might need to install the libpython3.11-testsuite package.
doCheck = false;
nativeCheckInputs = [
pytest-trio
pytestCheckHook