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 , buildPythonPackage
, fetchPypi , fetchPypi
, setuptools , setuptools
, greenlet
, trio , trio
, outcome , outcome
, sniffio , sniffio
, exceptiongroup , exceptiongroup
, pytest-trio , pytest-trio
, pytestCheckHook , pytestCheckHook
, pythonAtLeast
, pythonOlder , pythonOlder
}: }:
@ -27,7 +27,7 @@ buildPythonPackage rec {
postPatch = '' postPatch = ''
substituteInPlace setup.py \ substituteInPlace setup.py \
--replace "'pytest-runner'" "" --replace '"pytest-runner"' ""
''; '';
nativeBuildInputs = [ nativeBuildInputs = [
@ -35,6 +35,7 @@ buildPythonPackage rec {
]; ];
propagatedBuildInputs = [ propagatedBuildInputs = [
greenlet
trio trio
outcome outcome
sniffio sniffio
@ -42,6 +43,9 @@ buildPythonPackage rec {
exceptiongroup 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 = [ nativeCheckInputs = [
pytest-trio pytest-trio
pytestCheckHook pytestCheckHook