python313Packages.traits: fix build (#373698)
[NixPkgs.git] / pkgs / development / python-modules / sphinx-thebe / default.nix
blobbae64efe894900df60842ab7708435a87a9c7a0f
2   lib,
3   buildPythonPackage,
4   fetchPypi,
5   hatch-vcs,
6   hatchling,
7   pythonOlder,
8   sphinx,
9 }:
11 buildPythonPackage rec {
12   pname = "sphinx-thebe";
13   version = "0.3.1";
14   pyproject = true;
16   disabled = pythonOlder "3.8";
18   src = fetchPypi {
19     inherit version;
20     pname = "sphinx_thebe";
21     hash = "sha256-V2BH9FVg6C9kql8VIAsesJTc/hxbj1MaimW9II4lpJM=";
22   };
24   nativeBuildInputs = [
25     hatch-vcs
26     hatchling
27   ];
29   propagatedBuildInputs = [ sphinx ];
31   pythonImportsCheck = [ "sphinx_thebe" ];
33   meta = with lib; {
34     description = "Integrate interactive code blocks into your documentation with Thebe and Binder";
35     homepage = "https://github.com/executablebooks/sphinx-thebe";
36     changelog = "https://github.com/executablebooks/sphinx-thebe/releases/tag/v${version}";
37     license = licenses.mit;
38     maintainers = [ ];
39   };