diff --git a/python-jupyter-leaflet.spec b/python-jupyter-leaflet.spec index c68ffb4..17c0069 100644 --- a/python-jupyter-leaflet.spec +++ b/python-jupyter-leaflet.spec @@ -34,7 +34,11 @@ BuildRequires: fdupes BuildRequires: jupyter-rpm-macros BuildRequires: python-rpm-macros Provides: python-jupyter_leaflet = %{version}-%{release} +Requires: jupyter-leaflet = %{version} BuildArch: noarch +# SECTION test requirements +BuildRequires: %{python_module nbclassic} +# /SECTION %python_subpackages %description @@ -65,8 +69,15 @@ cp %{SOURCE1} ./ %python_expand %fdupes %{buildroot}%{$python_sitelib} %fdupes %{buildroot}%{_jupyter_prefix} -#%%check -# no python checks, but make sure to look into ipyleaflet +%check +export JUPYTER_PATH=%{buildroot}%{_jupyter_prefix} +export JUPYTER_CONFIG_PATH=%{buildroot}%{_jupyter_confdir} +%{python_expand # no python tests available +export PYTHONPATH=%{buildroot}%{$python_sitelib} +$python -c 'import jupyter_leaflet' +jupyter-%{$python_bin_suffix} nbclassic-extension list 2>&1 | grep 'jupyter-leaflet.*enabled' +jupyter-%{$python_bin_suffix} labextension list 2>&1 | grep 'jupyter-leaflet.*enabled' +} %files %{python_files} %{python_sitelib}/jupyter_leaflet