Accepting request 1172853 from devel:languages:python:jupyter

- Build from source not whl from pypi.

OBS-URL: https://build.opensuse.org/request/show/1172853
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-jupyterlab-pygments?expand=0&rev=11
This commit is contained in:
Dominique Leuenberger 2024-05-09 10:14:19 +00:00 committed by Git OBS Bridge
commit a37df77f39
4 changed files with 15 additions and 7 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:841a89020971da1d8693f1a99997aefc5dc424bb1b251fd6322462a1b8842780
size 15884

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:721aca4d9029252b11cfa9d185e5b5af4d54772bb8072f9b7036f4170054d35d
size 512900

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu May 9 06:59:50 UTC 2024 - Daniel Garcia <daniel.garcia@suse.com>
- Build from source not whl from pypi.
-------------------------------------------------------------------
Thu Mar 7 11:17:46 UTC 2024 - Ben Greiner <code@bnavigator.de>

View File

@ -34,10 +34,13 @@ Summary: Pygments theme for jupyterlab
License: BSD-3-Clause
Group: Development/Languages/Python
URL: https://github.com/jupyterlab/jupyterlab_pygments
Source: https://files.pythonhosted.org/packages/py3/j/jupyterlab-pygments/jupyterlab_pygments-%{version}-py3-none-any.whl
Source: https://files.pythonhosted.org/packages/source/j/jupyterlab-pygments/jupyterlab_pygments-%{version}.tar.gz
# Slightly modified from https://github.com/jupyterlab/jupyterlab_pygments/blob/0.2.2/notebooks/Example.ipynb
Source1: Example.ipynb
BuildRequires: %{python_module base >= 3.8}
BuildRequires: %{python_module hatch-jupyter-builder}
BuildRequires: %{python_module hatch-nodejs-version}
BuildRequires: %{python_module hatchling}
BuildRequires: %{python_module pip}
BuildRequires: fdupes
BuildRequires: jupyter-rpm-macros
@ -63,14 +66,14 @@ Requires: python3dist(jupyterlab-pygments) = %{distversion}
This package contains the Jupyterlab extension files for python-jupyterlab-pygments
%prep
%setup -q -c -T
%autosetup -p1 -n jupyterlab_pygments-%{version}
%build
:
%{pyproject_wheel}
%if !%{with test}
%install
%pyproject_install %{SOURCE0}
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
find %{buildroot}%{_prefix} -path '*/site-packages/jupyterlab_pygments-%{version}.dist-info/licenses/LICENSE' -exec cp {} . ';' -quit
%endif