mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-26 10:14:48 +00:00
65 lines
1.2 KiB
Nix
65 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
|
|
# build-system
|
|
hatchling,
|
|
hatch-nodejs-version,
|
|
|
|
# dependencies
|
|
traitlets,
|
|
jupyter-core,
|
|
tomli,
|
|
|
|
# tests
|
|
copier,
|
|
pytestCheckHook,
|
|
versionCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "jupyter-builder";
|
|
version = "1.2.2";
|
|
pyproject = true;
|
|
__structuredAttrs = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jupyterlab";
|
|
repo = "jupyter-builder";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-G6Do2g/WNULgLQo18v9FgVIbug4ls/KXNrMl8+gvD9s=";
|
|
};
|
|
|
|
build-system = [
|
|
hatchling
|
|
hatch-nodejs-version
|
|
];
|
|
|
|
dependencies = [
|
|
traitlets
|
|
jupyter-core
|
|
tomli
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
copier
|
|
pytestCheckHook
|
|
versionCheckHook
|
|
];
|
|
|
|
disabledTestPaths = [
|
|
# Require internet access
|
|
"tests/test_tpl.py"
|
|
];
|
|
|
|
meta = {
|
|
description = "Build tools for JupyterLab";
|
|
homepage = "https://github.com/jupyterlab/jupyter-builder";
|
|
changelog = "https://github.com/jupyterlab/jupyter-builder/blob/${finalAttrs.src.tag}/CHANGELOG.md";
|
|
license = lib.licenses.bsd3;
|
|
teams = [ lib.teams.jupyter ];
|
|
mainProgram = "jupyter-builder";
|
|
};
|
|
})
|