nixpkgs/pkgs/development/python-modules/nbsphinx/default.nix
2023-01-20 09:28:52 +00:00

51 lines
919 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, docutils
, jinja2
, nbconvert
, nbformat
, sphinx
, traitlets
, pythonOlder
}:
buildPythonPackage rec {
pname = "nbsphinx";
version = "0.8.12";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-dlcEFs3svrIdv1w9aqIEztbB3X6+9Ad7XCG4xuzpUz8=";
};
propagatedBuildInputs = [
docutils
jinja2
nbconvert
nbformat
sphinx
traitlets
];
# The package has not tests
doCheck = false;
JUPYTER_PATH = "${nbconvert}/share/jupyter";
pythonImportsCheck = [
"nbsphinx"
];
meta = with lib; {
description = "Jupyter Notebook Tools for Sphinx";
homepage = "https://nbsphinx.readthedocs.io/";
changelog = "https://github.com/spatialaudio/nbsphinx/blob/${version}/NEWS.rst";
license = licenses.mit;
maintainers = with maintainers; [ costrouc ];
};
}