depot/third_party/nixpkgs/pkgs/development/python-modules/sphinxcontrib-katex/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

41 lines
928 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
pythonOlder,
setuptools,
sphinx,
pytestCheckHook
}:
buildPythonPackage rec {
pname = "sphinxcontrib-katex";
version = "0.9.10";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
pname = "sphinxcontrib_katex";
inherit version;
hash = "sha256-MJqS2uJF28WE/36l+2VJcnuuleTlIAi3TSWdL9GtDew=";
};
build-system = [ setuptools ];
dependencies = [ sphinx ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "sphinxcontrib.katex" ];
pythonNamespaces = [ "sphinxcontrib" ];
meta = with lib; {
description = "Sphinx extension using KaTeX to render math in HTML";
homepage = "https://github.com/hagenw/sphinxcontrib-katex";
changelog = "https://github.com/hagenw/sphinxcontrib-katex/blob/v${version}/CHANGELOG.rst";
license = licenses.mit;
maintainers = with maintainers; [ jluttine ];
};
}