Something went wrong. Try again.
lol
Something went wrong. Try again.
1.6 kB · 84 lines
Nix
at master
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485{ lib, buildPythonPackage, fetchFromGitHub, fetchNpmDeps,
# build-system hatch-deps-selector, hatch-jupyter-builder, hatch-nodejs-version, hatchling,
# nativeBuildInputs nodejs, npmHooks,
# dependencies jupyter-core, jupyter-server, ipykernel, nodeenv,
# tests versionCheckHook,}:
buildPythonPackage (finalAttrs: { pname = "jupyter-book"; version = "2.1.4"; pyproject = true;
src = fetchFromGitHub { owner = "jupyter-book"; repo = "jupyter-book"; tag = "v${finalAttrs.version}"; hash = "sha256-iKdrwqNQBiWMxibqAHaQla8DLE6jgafVCK+cnNm82V4="; };
npmDeps = fetchNpmDeps { inherit (finalAttrs) src; hash = "sha256-DM8YjA5z9u9CjKIvHuV2wuFrAIxggcXDqTwt80+I0dk="; };
build-system = [ hatch-deps-selector hatch-jupyter-builder hatch-nodejs-version hatchling ];
nativeBuildInputs = [ nodejs npmHooks.npmConfigHook ];
# jupyter-book requires node at runtime propagatedBuildInputs = [ nodejs ];
dependencies = [ ipykernel jupyter-core jupyter-server nodeenv ];
pythonImportsCheck = [ "jupyter_book" ];
# No python tests nativeCheckInputs = [ versionCheckHook ]; versionCheckProgramArg = "--version";
meta = { description = "Build a book with Jupyter Notebooks and Sphinx"; homepage = "https://jupyterbook.org/"; changelog = "https://github.com/jupyter-book/jupyter-book/blob/${finalAttrs.src.tag}/CHANGELOG.md"; license = lib.licenses.bsd3; teams = [ lib.teams.jupyter ]; mainProgram = "jupyter-book"; };})