diff --git a/python-pytest-jupyter.spec b/python-pytest-jupyter.spec index e24c3f4..31cbe14 100644 --- a/python-pytest-jupyter.spec +++ b/python-pytest-jupyter.spec @@ -36,7 +36,7 @@ Summary: A pytest plugin for testing Jupyter libraries and extensions License: BSD-3-Clause AND MIT URL: https://github.com/jupyter-server/pytest-jupyter Source: https://files.pythonhosted.org/packages/source/p/pytest_jupyter/pytest_jupyter-%{version}.tar.gz -BuildRequires: %{python_module base >= 3.7} +BuildRequires: %{python_module base >= 3.8} BuildRequires: %{python_module hatchling} BuildRequires: %{python_module pip} BuildRequires: fdupes @@ -45,7 +45,6 @@ Requires: python-jupyter_core Requires: python-pytest BuildArch: noarch %if %{with test} -BuildRequires: %{python_module nbformat} BuildRequires: %{python_module pytest-jupyter = %{version}} BuildRequires: %{python_module pytest-jupyter-client = %{version}} %if !%{with ringdisabled} @@ -60,8 +59,9 @@ A pytest plugin for testing Jupyter libraries and extensions. %package client Summary: A pytest plugin for testing Jupyter libraries and extensions [client] extra -Requires: python-ipykernel +Requires: python-ipykernel >= 6.14 Requires: python-jupyter_client >= 7.4 +Requires: python-nbformat >= 5.3 Requires: python-pytest-jupyter = %{version} %description client @@ -70,6 +70,7 @@ This subpackage provides the [client] extra dependencies %package server Summary: A pytest plugin for testing Jupyter libraries and extensions [server] extra +Requires: python-ipykernel >= 6.14 Requires: python-jupyter-server >= 1.21 Requires: python-nbformat >= 5.3 Requires: python-pytest-jupyter = %{version} @@ -81,7 +82,7 @@ This subpackage provides the [server] extra dependencies %prep %setup -q -n pytest_jupyter-%{version} -sed -i 's/--color=yes//' pyproject.toml +sed -i 's/ "--color=yes",//' pyproject.toml %if !%{with test} %build @@ -94,6 +95,7 @@ sed -i 's/--color=yes//' pyproject.toml %if %{with test} %check +mv pytest_jupyter pytest_jupyter.moved %pytest %endif