Benjamin Greiner 2024-05-05 18:50:16 +00:00 committed by Git OBS Bridge
parent 248d0ab78a
commit 25ea5b4136

View File

@ -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