Name: python-jupyter-builder Version: 1.2.2 Release: %autorelease Summary: Build tools for JupyterLab extensions # jupyter-builder is BSD-3-Clause. # Bundled yarn bundles libs with MIT and ISC licenses. # Bundled node-semver is MIT. License: BSD-3-Clause AND MIT AND ISC URL: https://jupyter.org Source: %{pypi_source jupyter_builder} BuildArch: noarch BuildRequires: python3-devel # For tests BuildRequires: toml-cli BuildRequires: python3dist(pytest) %global _description %{expand: Build tools for JupyterLab extensions — extracted from the core JupyterLab codebase to be maintained and used independently.} %description %_description %package -n python3-jupyter-builder Summary: %{summary} # https://github.com/jupyterlab/jupyter-builder/issues/169 Provides: bundled(python3dist(node-semver)) = 0.9.1 Provides: bundled(npm(@yarnpkg/cli)) = 3.5.0 %description -n python3-jupyter-builder %_description %prep %autosetup -p1 -n jupyter_builder-%{version} # Pytest cannot import copier toml unset --toml-path pyproject.toml tool.pytest.ini_options.filterwarnings %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -l jupyter_builder %check # Ignored tests require copier which is not packaged yet %pytest --ignore tests/test_tpl.py %files -n python3-jupyter-builder -f %{pyproject_files} %doc README.md CHANGELOG.md %{_bindir}/jupyter-builder %{_bindir}/jlpm %changelog %autochangelog