bb5b50588c
GitOrigin-RevId: 9816b99e71c3504b0b4c1f8b2e004148460029d4
47 lines
789 B
Nix
47 lines
789 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, docutils
|
|
, jinja2
|
|
, nbconvert
|
|
, nbformat
|
|
, sphinx
|
|
, traitlets
|
|
, isPy3k
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "nbsphinx";
|
|
version = "0.8.1";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "19lf036h0d9ryqasrh91myhn3dq5zcw4rik9jy6sayq7l6irmm94";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
docutils
|
|
jinja2
|
|
nbconvert
|
|
nbformat
|
|
sphinx
|
|
traitlets
|
|
];
|
|
|
|
# The package has not tests
|
|
doCheck = false;
|
|
|
|
JUPYTER_PATH = "${nbconvert}/share/jupyter";
|
|
pythonImportsCheck = [
|
|
"nbsphinx"
|
|
];
|
|
|
|
disabled = !isPy3k;
|
|
|
|
meta = with lib; {
|
|
description = "Jupyter Notebook Tools for Sphinx";
|
|
homepage = "https://nbsphinx.readthedocs.io/";
|
|
license = licenses.mit;
|
|
maintainers = [ maintainers.costrouc ];
|
|
};
|
|
}
|