Files
nixpkgs/pkgs/development/python-modules/jupyterlab-git/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

96 lines
1.8 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
git,
gitMinimal,
nodejs,
writableTmpDirAsHomeHook,
yarn-berry_3,
jupyter-server,
hatch-jupyter-builder,
hatch-nodejs-version,
hatchling,
jupyterlab,
nbdime,
nbformat,
packaging,
pexpect,
pytest-asyncio,
pytest-jupyter,
pytest-tornasync,
pytestCheckHook,
traitlets,
}:
buildPythonPackage rec {
pname = "jupyterlab-git";
version = "0.51.2";
pyproject = true;
src = fetchFromGitHub {
owner = "jupyterlab";
repo = "jupyterlab-git";
tag = "v${version}";
hash = "sha256-YQWS+/GfQzkQ/n0xBq+K8lJ9tjvIRJxa3w3AzNARpDo=";
};
nativeBuildInputs = [
nodejs
yarn-berry_3.yarnBerryConfigHook
];
offlineCache = yarn-berry_3.fetchYarnBerryDeps {
inherit src;
hash = "sha256-9GmQv4UYH+uRPgAZed6IJC+7uMKhlXvokVwd248yi/4=";
};
build-system = [
hatch-jupyter-builder
hatch-nodejs-version
hatchling
jupyterlab
];
dependencies = [
jupyter-server
nbdime
nbformat
packaging
pexpect
traitlets
];
propagatedBuildInputs = [ git ];
nativeCheckInputs = [
gitMinimal
pytest-asyncio
pytest-jupyter
pytest-tornasync
pytestCheckHook
writableTmpDirAsHomeHook
];
disabledTestPaths = [
"jupyterlab_git/tests/test_handlers.py"
];
disabledTests = [
"test_Git_get_nbdiff_file"
"test_Git_get_nbdiff_dict"
];
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/v${version}/CHANGELOG.md";
license = with lib.licenses; [ bsd3 ];
maintainers = with lib.maintainers; [ chiroptical ];
};
}