From eccb49d429991ee66497309328379b312ff27cc3 Mon Sep 17 00:00:00 2001 From: Mario Rodas Date: Fri, 1 Jul 2022 04:20:00 +0000 Subject: [PATCH] python310Packages.sphinx-thebe: init at 0.1.2 --- .../python-modules/sphinx-thebe/default.nix | 29 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 31 insertions(+) create mode 100644 pkgs/development/python-modules/sphinx-thebe/default.nix diff --git a/pkgs/development/python-modules/sphinx-thebe/default.nix b/pkgs/development/python-modules/sphinx-thebe/default.nix new file mode 100644 index 00000000000..c98e2fea688 --- /dev/null +++ b/pkgs/development/python-modules/sphinx-thebe/default.nix @@ -0,0 +1,29 @@ +{ lib +, buildPythonPackage +, pythonOlder +, fetchPypi +, sphinx +}: + +buildPythonPackage rec { + pname = "sphinx-thebe"; + version = "0.1.2"; + + disabled = pythonOlder "3.6"; + + src = fetchPypi { + inherit pname version; + sha256 = "756f1dd6643f5abb491f8a27b22825b04f47e05c5d214bbb2e6b5d42b621b85e"; + }; + + propagatedBuildInputs = [ sphinx ]; + + pythonImportsCheck = [ "sphinx_thebe" ]; + + meta = with lib; { + description = "Integrate interactive code blocks into your documentation with Thebe and Binder"; + homepage = "https://github.com/executablebooks/sphinx-thebe"; + license = licenses.mit; + maintainers = with maintainers; [ marsam ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 21e85d81153..98452bf647c 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -9992,6 +9992,8 @@ in { sphinx-pytest = callPackage ../development/python-modules/sphinx-pytest { }; + sphinx-thebe = callPackage ../development/python-modules/sphinx-thebe { }; + sphinx-togglebutton = callPackage ../development/python-modules/sphinx-togglebutton { }; sphinxcontrib-actdiag = callPackage ../development/python-modules/sphinxcontrib-actdiag { };