From 817cd8bf46140c2e66af67552f1c10016c779c7f Mon Sep 17 00:00:00 2001 From: Gerhard Schwanzer Date: Wed, 29 Jul 2026 22:48:50 +0200 Subject: [PATCH] python3Packages.jupyterlab-git: 0.52.0 -> 0.54.0 Adapt to upstream's split package layout and depend on jupyterlab-git-core. The release fixes CVE-2026-54527 and CVE-2026-54528. https://redirect.github.com/jupyterlab/jupyterlab-git/blob/v0.54.0/CHANGELOG.md#0540 Assisted-by: pi coding agent / Mika (OpenAI gpt-5.6-sol) --- .../python-modules/jupyterlab-git/default.nix | 52 ++++--------------- 1 file changed, 9 insertions(+), 43 deletions(-) diff --git a/pkgs/development/python-modules/jupyterlab-git/default.nix b/pkgs/development/python-modules/jupyterlab-git/default.nix index 759833aab88a..e740150d3b52 100644 --- a/pkgs/development/python-modules/jupyterlab-git/default.nix +++ b/pkgs/development/python-modules/jupyterlab-git/default.nix @@ -1,21 +1,14 @@ { lib, buildPythonPackage, - fetchFromGitHub, - git, gitMinimal, - nodejs, writableTmpDirAsHomeHook, - yarn-berry_3, - jupyter-server, - hatch-jupyter-builder, hatch-nodejs-version, hatchling, - jupyterlab, + jupyterlab-git-core, + jupyter-server, + jupytext, nbdime, - nbformat, - packaging, - pexpect, pytest-asyncio, pytest-jupyter, pytest-tornasync, @@ -25,46 +18,28 @@ buildPythonPackage rec { pname = "jupyterlab-git"; - version = "0.52.0"; + inherit (jupyterlab-git-core) src version; pyproject = true; - src = fetchFromGitHub { - owner = "jupyterlab"; - repo = "jupyterlab-git"; - tag = "v${version}"; - hash = "sha256-BMzn+134hSYUFrDF+4+Bs81hzSURP9VNX4D9x2UuPMQ="; - }; - - nativeBuildInputs = [ - nodejs - yarn-berry_3.yarnBerryConfigHook - ]; - - offlineCache = yarn-berry_3.fetchYarnBerryDeps { - inherit src; - hash = "sha256-3pVc4xz5ilamCg97wdaLQliBHeSr3mPYwhgnz/lvfj0="; - }; + preBuild = '' + cd packages/jupyterlab + ''; build-system = [ - hatch-jupyter-builder hatch-nodejs-version hatchling - jupyterlab ]; dependencies = [ + jupyterlab-git-core jupyter-server nbdime - nbformat - packaging - pexpect traitlets ]; - propagatedBuildInputs = [ git ]; - nativeCheckInputs = [ gitMinimal + jupytext pytest-asyncio pytest-jupyter pytest-tornasync @@ -72,15 +47,6 @@ buildPythonPackage rec { writableTmpDirAsHomeHook ]; - disabledTestPaths = [ - "jupyterlab_git/tests/test_handlers.py" - ]; - - disabledTests = [ - "test_Git_get_nbdiff_file" - "test_Git_get_nbdiff_dict" - ]; - pythonImportsCheck = [ "jupyterlab_git" ]; __darwinAllowLocalNetworking = true;