1{ lib
2, buildPythonPackage
3, fetchPypi
4, hatch-vcs
5, hatchling
6, pythonOlder
7, sphinx
8}:
9
10buildPythonPackage rec {
11 pname = "sphinx-thebe";
12 version = "0.3.0";
13 pyproject = true;
14
15 disabled = pythonOlder "3.8";
16
17 src = fetchPypi {
18 inherit version;
19 pname = "sphinx_thebe";
20 hash = "sha256-xg2rG1m5LWouq41xGeh8BzBHDaYvPIS/bKdWkEh9BQU=";
21 };
22
23 nativeBuildInputs = [
24 hatch-vcs
25 hatchling
26 ];
27
28 propagatedBuildInputs = [
29 sphinx
30 ];
31
32 pythonImportsCheck = [
33 "sphinx_thebe"
34 ];
35
36 meta = with lib; {
37 description = "Integrate interactive code blocks into your documentation with Thebe and Binder";
38 homepage = "https://github.com/executablebooks/sphinx-thebe";
39 changelog = "https://github.com/executablebooks/sphinx-thebe/releases/tag/v${version}";
40 license = licenses.mit;
41 maintainers = with maintainers; [ marsam ];
42 };
43}