2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
setuptools,
|
|
|
|
docutils,
|
|
|
|
jinja2,
|
|
|
|
nbconvert,
|
|
|
|
nbformat,
|
|
|
|
sphinx,
|
|
|
|
traitlets,
|
|
|
|
pythonOlder,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "nbsphinx";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "0.9.4";
|
|
|
|
pyproject = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-01-11 07:51:40 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-BCpggG/CPVGbxb71nZVXBxORP+RC/adZ1T46r2IQR5Q=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
build-system = [ setuptools ];
|
2024-05-15 15:35:15 +00:00
|
|
|
|
|
|
|
dependencies = [
|
2020-04-24 23:36:52 +00:00
|
|
|
docutils
|
|
|
|
jinja2
|
|
|
|
nbconvert
|
|
|
|
nbformat
|
|
|
|
sphinx
|
|
|
|
traitlets
|
|
|
|
];
|
|
|
|
|
2021-02-13 14:23:35 +00:00
|
|
|
# The package has not tests
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
JUPYTER_PATH = "${nbconvert}/share/jupyter";
|
2023-01-11 07:51:40 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "nbsphinx" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Jupyter Notebook Tools for Sphinx";
|
|
|
|
homepage = "https://nbsphinx.readthedocs.io/";
|
2023-01-11 07:51:40 +00:00
|
|
|
changelog = "https://github.com/spatialaudio/nbsphinx/blob/${version}/NEWS.rst";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mit;
|
2023-08-04 22:07:22 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|