mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-29 03:34:42 +00:00
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)
62 lines
1.2 KiB
Nix
62 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
gitMinimal,
|
|
writableTmpDirAsHomeHook,
|
|
hatch-nodejs-version,
|
|
hatchling,
|
|
jupyterlab-git-core,
|
|
jupyter-server,
|
|
jupytext,
|
|
nbdime,
|
|
pytest-asyncio,
|
|
pytest-jupyter,
|
|
pytest-tornasync,
|
|
pytestCheckHook,
|
|
traitlets,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "jupyterlab-git";
|
|
inherit (jupyterlab-git-core) src version;
|
|
pyproject = true;
|
|
|
|
preBuild = ''
|
|
cd packages/jupyterlab
|
|
'';
|
|
|
|
build-system = [
|
|
hatch-nodejs-version
|
|
hatchling
|
|
];
|
|
|
|
dependencies = [
|
|
jupyterlab-git-core
|
|
jupyter-server
|
|
nbdime
|
|
traitlets
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
gitMinimal
|
|
jupytext
|
|
pytest-asyncio
|
|
pytest-jupyter
|
|
pytest-tornasync
|
|
pytestCheckHook
|
|
writableTmpDirAsHomeHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "jupyterlab_git" ];
|
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
meta = {
|
|
description = "Jupyter lab extension for version control with Git";
|
|
homepage = "https://github.com/jupyterlab/jupyterlab-git";
|
|
changelog = "https://github.com/jupyterlab/jupyterlab-git/blob/${src.tag}/CHANGELOG.md";
|
|
license = lib.licenses.bsd3;
|
|
maintainers = with lib.maintainers; [ chiroptical ];
|
|
};
|
|
}
|