c7cb07f092
GitOrigin-RevId: 1536926ef5621b09bba54035ae2bb6d806d72ac8
43 lines
873 B
Nix
43 lines
873 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, hatch-vcs
|
|
, hatchling
|
|
, pythonOlder
|
|
, sphinx
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "sphinx-thebe";
|
|
version = "0.3.1";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchPypi {
|
|
inherit version;
|
|
pname = "sphinx_thebe";
|
|
hash = "sha256-V2BH9FVg6C9kql8VIAsesJTc/hxbj1MaimW9II4lpJM=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
hatch-vcs
|
|
hatchling
|
|
];
|
|
|
|
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";
|
|
changelog = "https://github.com/executablebooks/sphinx-thebe/releases/tag/v${version}";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ marsam ];
|
|
};
|
|
}
|