summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/sphinx-thebe/default.nix
blob: 7a10c272db514193513fd207a9917016a3347445 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{
  lib,
  buildPythonPackage,
  fetchPypi,
  hatch-vcs,
  hatchling,
  sphinx,
}:

buildPythonPackage rec {
  pname = "sphinx-thebe";
  version = "0.3.1";
  pyproject = true;

  src = fetchPypi {
    inherit version;
    pname = "sphinx_thebe";
    hash = "sha256-V2BH9FVg6C9kql8VIAsesJTc/hxbj1MaimW9II4lpJM=";
  };

  nativeBuildInputs = [
    hatch-vcs
    hatchling
  ];

  propagatedBuildInputs = [ sphinx ];

  pythonImportsCheck = [ "sphinx_thebe" ];

  meta = {
    description = "Integrate interactive code blocks into your documentation with Thebe and Binder";
    homepage = "https://github.com/executablebooks/sphinx-thebe";
    changelog = "https://github.com/executablebooks/sphinx-thebe/releases/tag/v${version}";
    license = lib.licenses.mit;
    maintainers = [ ];
  };
}