a3d4720129
GitOrigin-RevId: e182da8622a354d44c39b3d7a542dc12cd7baa5f
38 lines
812 B
Nix
38 lines
812 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pythonOlder
|
|
, sphinx
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "sphinxcontrib-katex";
|
|
version = "0.9.3";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-6IUTUc4HOK2e++3qMfT2MVm+cBnfVyohSiyROtiRGzI=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
sphinx
|
|
];
|
|
|
|
# There are no unit tests
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [
|
|
"sphinxcontrib.katex"
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|