2019-02-19 13:45:49 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, docutils
|
|
|
|
, jinja2
|
|
|
|
, nbconvert
|
|
|
|
, nbformat
|
|
|
|
, sphinx
|
|
|
|
, traitlets
|
2020-06-11 10:10:11 +00:00
|
|
|
, isPy3k
|
2019-02-19 13:45:49 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "nbsphinx";
|
2021-08-18 07:53:42 +00:00
|
|
|
version = "0.8.7";
|
2019-02-19 13:45:49 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-08-18 07:53:42 +00:00
|
|
|
sha256 = "ff91b5b14ceb1a9d44193b5fc3dd3617e7b8ab59c788f7710049ce5faff2750c";
|
2019-02-19 13:45:49 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
docutils
|
|
|
|
jinja2
|
|
|
|
nbconvert
|
|
|
|
nbformat
|
|
|
|
sphinx
|
|
|
|
traitlets
|
|
|
|
];
|
|
|
|
|
2021-02-05 17:23:16 +00:00
|
|
|
# The package has not tests
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
JUPYTER_PATH = "${nbconvert}/share/jupyter";
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"nbsphinx"
|
|
|
|
];
|
2019-02-19 13:45:49 +00:00
|
|
|
|
2020-06-11 10:10:11 +00:00
|
|
|
disabled = !isPy3k;
|
|
|
|
|
2019-02-19 13:45:49 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Jupyter Notebook Tools for Sphinx";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://nbsphinx.readthedocs.io/";
|
2019-02-19 13:45:49 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|