diff --git a/0001-fix-jupyter-core-version.patch b/0001-fix-jupyter-core-version.patch new file mode 100644 index 0000000000000000000000000000000000000000..4b541240a64d86f3cd49d312647f227f8fa541ca --- /dev/null +++ b/0001-fix-jupyter-core-version.patch @@ -0,0 +1,39 @@ +From 0c3ff92fa348b820ab093bfdb41839fa98a10878 Mon Sep 17 00:00:00 2001 +From: mengzhaoa +Date: Thu, 21 Sep 2023 17:40:21 +0800 +Subject: [PATCH] fix jupyter-core version + +--- + PKG-INFO | 2 +- + pyproject.toml | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/PKG-INFO b/PKG-INFO +index 2f9889a..c80fef8 100644 +--- a/PKG-INFO ++++ b/PKG-INFO +@@ -59,7 +59,7 @@ Requires-Dist: anyio>=3.1.0 + Requires-Dist: argon2-cffi + Requires-Dist: jinja2 + Requires-Dist: jupyter-client>=7.4.4 +-Requires-Dist: jupyter-core!=5.0.*,>=4.12 ++Requires-Dist: jupyter-core<=5.5.0,>=4.12 + Requires-Dist: jupyter-events>=0.6.0 + Requires-Dist: jupyter-server-terminals + Requires-Dist: nbconvert>=6.4.4 +diff --git a/pyproject.toml b/pyproject.toml +index 139e60e..e16061f 100644 +--- a/pyproject.toml ++++ b/pyproject.toml +@@ -31,7 +31,7 @@ dependencies = [ + "argon2-cffi", + "jinja2", + "jupyter_client>=7.4.4", +- "jupyter_core>=4.12,!=5.0.*", ++ "jupyter_core>=4.12,<=5.5.0", + "jupyter_server_terminals", + "nbconvert>=6.4.4", + "nbformat>=5.3.0", +-- +1.8.3.1 + diff --git a/jupyter_server-2.7.0.tar.gz b/jupyter_server-2.7.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..f46df63bbba4f8e4f612c1552fff10d24a84ea72 Binary files /dev/null and b/jupyter_server-2.7.0.tar.gz differ diff --git a/python-jupyter-server.spec b/python-jupyter-server.spec new file mode 100644 index 0000000000000000000000000000000000000000..7f2a56f56729b98907550fe42ae86d43458af791 --- /dev/null +++ b/python-jupyter-server.spec @@ -0,0 +1,50 @@ +Name: python-jupyter-server +Version: 2.7.0 +Release: 1 +Summary: The backend for Jupyter web applications + +License: BSD-3-Clause +URL: https://github.com/jupyter-server/jupyter_server +Source: %{url}/archive/%{version}/jupyter_server-%{version}.tar.gz +Patch1: 0001-fix-jupyter-core-version.patch + +BuildArch: noarch + +%global _description %{expand: +The Jupyter Server provides the backend (i.e. the core services, +APIs, and REST endpoints) for Jupyter web applications like +Jupyter notebook, JupyterLab, and Voila.} + +%description %_description + +%package -n python3-jupyter-server + +Summary: %{summary} +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-setuptools_scm +BuildRequires: python3-pip +BuildRequires: python3-wheel +BuildRequires: python3-hatch-jupyter-builder + +%description -n python3-jupyter-server %_description + +%prep +%autosetup -n jupyter_server-%{version} + +%build +%pyproject_build + +%install +%pyproject_install + +%files -n python3-jupyter-server +%license LICENSE +%doc README.md +%{_bindir}/jupyter-server +%{python3_sitelib}/jupyter_server-*.dist-info/ +%{python3_sitelib}/jupyter_server/ + +%changelog +* Mon Jul 31 2023 mengzhaoa - 2.7.0-1 +- Init package python3-jupyter-server \ No newline at end of file