diff --git a/python-pytest-jupyter.spec b/python-pytest-jupyter.spec index 31cbe14..575af08 100644 --- a/python-pytest-jupyter.spec +++ b/python-pytest-jupyter.spec @@ -82,7 +82,10 @@ This subpackage provides the [server] extra dependencies %prep %setup -q -n pytest_jupyter-%{version} -sed -i 's/ "--color=yes",//' pyproject.toml +sed -e 's/ "--color=yes",//' -i pyproject.toml +%if %{with ringdisabled} +sed -e "/jupyter_server/d" -i tests/conftest.py +%endif %if !%{with test} %build @@ -96,7 +99,7 @@ sed -i 's/ "--color=yes",//' pyproject.toml %if %{with test} %check mv pytest_jupyter pytest_jupyter.moved -%pytest +%pytest %{?_with_ringdisabled:--ignore tests/test_jupyter_server.py} %endif %if !%{with test}