1{ lib, buildPythonPackage, fetchPypi, pythonOlder, sphinx }:
2
3buildPythonPackage rec {
4 pname = "sphinxcontrib-katex";
5 version = "0.6.1";
6
7 # pkgutil namespaces are broken in nixpkgs (because they can't scan multiple
8 # directories). But python2 is EOL, so not supporting it should be ok.
9 disabled = pythonOlder "3";
10
11 src = fetchPypi {
12 inherit pname version;
13 sha256 = "88320b2780f350d67f84a5424973ce24aee65701e8e163a7f5856c5df3353188";
14 };
15
16 propagatedBuildInputs = [ sphinx ];
17
18 # There are no unit tests
19 doCheck = false;
20 pythonImportsCheck = [ "sphinxcontrib.katex" ];
21
22 meta = with lib; {
23 description = "Sphinx extension using KaTeX to render math in HTML";
24 homepage = "https://github.com/hagenw/sphinxcontrib-katex";
25 license = licenses.mit;
26 maintainers = with maintainers; [ jluttine ];
27 };
28}