nixpkgs/pkgs/development/python-modules/nbsphinx/default.nix

45 lines
718 B
Nix
Raw Normal View History

2019-02-19 13:45:49 +00:00
{ lib
, buildPythonPackage
, fetchPypi
, docutils
, jinja2
, nbconvert
, nbformat
, sphinx
, traitlets
, python
2020-06-11 11:10:11 +01:00
, isPy3k
2019-02-19 13:45:49 +00:00
}:
buildPythonPackage rec {
pname = "nbsphinx";
version = "0.7.1";
2019-02-19 13:45:49 +00:00
src = fetchPypi {
inherit pname version;
sha256 = "0j56bxdj08vn3q1804qwb1ywhga1mdg1awgm7i64wfpfwi8df2zm";
2019-02-19 13:45:49 +00:00
};
propagatedBuildInputs = [
docutils
jinja2
nbconvert
nbformat
sphinx
traitlets
];
checkPhase = ''
${python.interpreter} -m nbsphinx
'';
2020-06-11 11:10:11 +01:00
disabled = !isPy3k;
2019-02-19 13:45:49 +00:00
meta = with lib; {
description = "Jupyter Notebook Tools for Sphinx";
homepage = "https://nbsphinx.readthedocs.io/";
2019-02-19 13:45:49 +00:00
license = licenses.mit;
maintainers = [ maintainers.costrouc ];
};
}