Files
nixpkgs/pkgs/development/python-modules/jupyter-sphinx/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

65 lines
1.2 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
hatchling,
ipykernel,
ipython,
ipywidgets,
nbconvert,
nbformat,
pythonOlder,
sphinx,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "jupyter-sphinx";
version = "0.5.3";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "jupyter";
repo = "jupyter-sphinx";
tag = "v${version}";
hash = "sha256-o/i3WravKZPf7uw2H4SVYfAyaZGf19ZJlkmeHCWcGtE=";
};
nativeBuildInputs = [ hatchling ];
propagatedBuildInputs = [
ipykernel
ipython
ipywidgets
nbconvert
nbformat
sphinx
];
pythonImportsCheck = [ "jupyter_sphinx" ];
env.JUPYTER_PLATFORM_DIRS = 1;
nativeCheckInputs = [ pytestCheckHook ];
disabledTests = [
# https://github.com/jupyter/jupyter-sphinx/issues/280"
"test_builder_priority"
];
preCheck = ''
export HOME=$TMPDIR
'';
__darwinAllowLocalNetworking = true;
meta = {
description = "Jupyter Sphinx Extensions";
homepage = "https://github.com/jupyter/jupyter-sphinx/";
changelog = "https://github.com/jupyter/jupyter-sphinx/releases/tag/v${version}";
license = lib.licenses.bsd3;
};
}