2019-11-27 16:44:20 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, pythonOlder, sphinx }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "sphinxcontrib-katex";
|
2020-11-14 12:51:36 +00:00
|
|
|
version = "0.7.1";
|
2019-11-27 16:44:20 +00:00
|
|
|
|
|
|
|
# pkgutil namespaces are broken in nixpkgs (because they can't scan multiple
|
|
|
|
# directories). But python2 is EOL, so not supporting it should be ok.
|
|
|
|
disabled = pythonOlder "3";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-11-14 12:51:36 +00:00
|
|
|
sha256 = "fa80aba8af9d78f70a0a255815d44e33e8aca8e806ca6101e0eb18b2b7243246";
|
2019-11-27 16:44:20 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ jluttine ];
|
|
|
|
};
|
|
|
|
}
|