Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / sphinx-book-theme / default.nix
blob872df1fbb451eaee47785a478e5719eaddf0bb33
1 { lib
2 , buildPythonPackage
3 , pythonOlder
4 , fetchPypi
5 , sphinx
6 , pydata-sphinx-theme
7 , jupyter-book
8 }:
10 buildPythonPackage rec {
11   pname = "sphinx-book-theme";
12   version = "1.0.1";
14   format = "wheel";
16   disabled = pythonOlder "3.7";
18   src = fetchPypi {
19     inherit version format;
20     dist = "py3";
21     python = "py3";
22     pname = "sphinx_book_theme";
23     hash = "sha256-0V+CSLNxippr4LphejLRWR+fo5xhRGm/rOd3uganO3U=";
24   };
26   propagatedBuildInputs = [
27     pydata-sphinx-theme
28     sphinx
29   ];
31   pythonImportsCheck = [
32     "sphinx_book_theme"
33   ];
35   passthru.tests = {
36     inherit jupyter-book;
37   };
39   meta = with lib; {
40     description = "A clean book theme for scientific explanations and documentation with Sphinx";
41     homepage = "https://github.com/executablebooks/sphinx-book-theme";
42     changelog = "https://github.com/executablebooks/sphinx-book-theme/raw/v${version}/CHANGELOG.md";
43     license = licenses.bsd3;
44     maintainers = with maintainers; [ marsam ];
45   };