ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / sphinx-jupyterbook-latex / default.nix
blob5aa69c47beb2e0b16ed96f3e4cd5d31698af7b4d
1 { lib
2 , buildPythonPackage
3 , pythonOlder
4 , fetchPypi
5 , sphinx
6 , importlib-resources
7 }:
9 buildPythonPackage rec {
10   pname = "sphinx-jupyterbook-latex";
11   version = "0.5.1";
12   format = "pyproject";
14   disabled = pythonOlder "3.6";
16   src = fetchPypi {
17     inherit version;
18     pname = "sphinx_jupyterbook_latex";
19     sha256 = "sha256-QErSEpolSEkJaQLzfcF0oDlugEhN5Y9/KwVwC2IknLY=";
20   };
22   postPatch = ''
23     substituteInPlace setup.cfg \
24       --replace "sphinx>=3,<5" "sphinx>=3"
25   '';
27   propagatedBuildInputs = [ sphinx ]
28     ++ lib.optionals (pythonOlder "3.9") [ importlib-resources ];
30   pythonImportsCheck = [ "sphinx_jupyterbook_latex" ];
32   meta = with lib; {
33     description = "Latex specific features for jupyter book";
34     homepage = "https://github.com/executablebooks/sphinx-jupyterbook-latex";
35     license = licenses.bsd3;
36     maintainers = with maintainers; [ marsam ];
37   };