nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchpatch,
5 fetchPypi,
6 setuptools,
7 docutils,
8 jinja2,
9 nbconvert,
10 nbformat,
11 sphinx,
12 traitlets,
13}:
14
15buildPythonPackage rec {
16 pname = "nbsphinx";
17 version = "0.9.8";
18 pyproject = true;
19
20 src = fetchPypi {
21 inherit pname version;
22 hash = "sha256-0HZZCDmajuK1e+euiBzy6ljWbbOve78z5utI+DvqVJU=";
23 };
24 patches = [
25 (fetchpatch {
26 url = "https://github.com/spatialaudio/nbsphinx/commit/a921973a5d8ecc39c6e02184572b79ab72c9978c.patch";
27 hash = "sha256-uxfSaOESWn8uVcUm+1ADzQgMQDEqaTs0TbfNYsS+E6I=";
28 })
29 ];
30
31 build-system = [ setuptools ];
32
33 dependencies = [
34 docutils
35 jinja2
36 nbconvert
37 nbformat
38 sphinx
39 traitlets
40 ];
41
42 # The package has not tests
43 doCheck = false;
44
45 JUPYTER_PATH = "${nbconvert}/share/jupyter";
46
47 pythonImportsCheck = [ "nbsphinx" ];
48
49 meta = {
50 description = "Jupyter Notebook Tools for Sphinx";
51 homepage = "https://nbsphinx.readthedocs.io/";
52 changelog = "https://github.com/spatialaudio/nbsphinx/blob/${version}/NEWS.rst";
53 license = lib.licenses.mit;
54 maintainers = [ ];
55 };
56}