e7ec2969af
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
40 lines
855 B
Nix
40 lines
855 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pythonOlder
|
|
, sphinx
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "sphinxcontrib-katex";
|
|
version = "0.9.9";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-1ZTILfVLBI1Z1I5GsQn2IhezEaublSCMq5bZAvmj/ik=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
sphinx
|
|
];
|
|
|
|
# There are no unit tests
|
|
doCheck = false;
|
|
|
|
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 ];
|
|
};
|
|
}
|