Files
nixpkgs/pkgs/development/python-modules/jupyterlab/default.nix
T
Martin Weinelt b79da2786f Merge remote-tracking branch 'origin/master' into staging-next
Conflicts:
	pkgs/development/python-modules/bundlewrap/default.nix
	pkgs/development/python-modules/coverage/default.nix
	pkgs/development/python-modules/h5netcdf/default.nix
	pkgs/development/python-modules/hypothesis/default.nix
	pkgs/development/python-modules/numba/default.nix
	pkgs/development/python-modules/optype/default.nix
	pkgs/development/python-modules/setuptools-git-versioning/default.nix
	pkgs/development/python-modules/sphinx/default.nix
2026-02-15 16:17:41 +01:00

96 lines
1.7 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
nodejs,
yarn-berry_3,
hatch-jupyter-builder,
hatchling,
async-lru,
httpx,
ipykernel,
jinja2,
jupyter-core,
jupyter-lsp,
jupyter-server,
jupyterlab-server,
notebook-shim,
packaging,
setuptools,
tornado,
traitlets,
}:
buildPythonPackage rec {
pname = "jupyterlab";
version = "4.5.3";
pyproject = true;
src = fetchFromGitHub {
owner = "jupyterlab";
repo = "jupyterlab";
tag = "v${version}";
hash = "sha256-QQ8g1+nB5aeXSrjwuL22L49S84cm2oiiNCqWj+dk7XI=";
};
nativeBuildInputs = [
nodejs
yarn-berry_3.yarnBerryConfigHook
];
preConfigure = ''
pushd jupyterlab/staging
'';
offlineCache = yarn-berry_3.fetchYarnBerryDeps {
inherit src;
sourceRoot = "${src.name}/jupyterlab/staging";
hash = "sha256-a+pTp1IqY/RLCjClKbb7LMvUblYULChtT/knGgTlI7U=";
};
preBuild = ''
popd
'';
build-system = [
hatch-jupyter-builder
hatchling
];
dependencies = [
async-lru
httpx
ipykernel
jinja2
jupyter-core
jupyter-lsp
jupyter-server
jupyterlab-server
notebook-shim
packaging
setuptools
tornado
traitlets
];
makeWrapperArgs = [
"--set"
"JUPYTERLAB_DIR"
"$out/share/jupyter/lab"
];
# Depends on npm
doCheck = false;
pythonImportsCheck = [ "jupyterlab" ];
meta = {
changelog = "https://github.com/jupyterlab/jupyterlab/blob/${src.tag}/CHANGELOG.md";
description = "Jupyter lab environment notebook server extension";
license = lib.licenses.bsd3;
homepage = "https://jupyter.org/";
teams = [ lib.teams.jupyter ];
mainProgram = "jupyter-lab";
};
}