1{ lib
2, buildPythonPackage
3, fetchPypi
4, setuptools
5, wheel
6, docutils
7, sphinx
8}:
9
10buildPythonPackage rec {
11 pname = "sphinx-togglebutton";
12 version = "0.3.2";
13 format = "pyproject";
14
15 src = fetchPypi {
16 inherit pname version;
17 hash = "sha256-qwyLNmQnsB5MiYAtXQeEcsQn+m6dEtUhw0+gRCVZ3Ho=";
18 };
19
20 nativeBuildInputs = [
21 setuptools
22 wheel
23 ];
24
25 propagatedBuildInputs = [
26 docutils
27 sphinx
28 ];
29
30 pythonImportsCheck = [
31 "sphinx_togglebutton"
32 ];
33
34 meta = with lib; {
35 description = "Toggle page content and collapse admonitions in Sphinx";
36 homepage = "https://github.com/executablebooks/sphinx-togglebutton";
37 license = licenses.mit;
38 maintainers = with maintainers; [ marsam ];
39 };
40}