diff --git a/jupyterlab_pygments-0.3.0-py3-none-any.whl b/jupyterlab_pygments-0.3.0-py3-none-any.whl deleted file mode 100644 index 17a497d..0000000 --- a/jupyterlab_pygments-0.3.0-py3-none-any.whl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:841a89020971da1d8693f1a99997aefc5dc424bb1b251fd6322462a1b8842780 -size 15884 diff --git a/jupyterlab_pygments-0.3.0.tar.gz b/jupyterlab_pygments-0.3.0.tar.gz new file mode 100644 index 0000000..ac24b61 --- /dev/null +++ b/jupyterlab_pygments-0.3.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:721aca4d9029252b11cfa9d185e5b5af4d54772bb8072f9b7036f4170054d35d +size 512900 diff --git a/python-jupyterlab-pygments.changes b/python-jupyterlab-pygments.changes index 68de4aa..20d3cea 100644 --- a/python-jupyterlab-pygments.changes +++ b/python-jupyterlab-pygments.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu May 9 06:59:50 UTC 2024 - Daniel Garcia + +- Build from source not whl from pypi. + ------------------------------------------------------------------- Thu Mar 7 11:17:46 UTC 2024 - Ben Greiner diff --git a/python-jupyterlab-pygments.spec b/python-jupyterlab-pygments.spec index d631c36..c416f48 100644 --- a/python-jupyterlab-pygments.spec +++ b/python-jupyterlab-pygments.spec @@ -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