1{ lib
2, buildPythonPackage
3, fetchPypi
4, pythonOlder
5, sphinx
6}:
7
8buildPythonPackage rec {
9 pname = "sphinxcontrib-katex";
10 version = "0.9.7";
11 format = "setuptools";
12
13 disabled = pythonOlder "3.7";
14
15 src = fetchPypi {
16 inherit pname version;
17 hash = "sha256-OmdUsc/JDhQeP3Pgg16vyCYtpfr+ekxnT6cI+rec69c=";
18 };
19
20 propagatedBuildInputs = [
21 sphinx
22 ];
23
24 # There are no unit tests
25 doCheck = false;
26
27 pythonImportsCheck = [
28 "sphinxcontrib.katex"
29 ];
30
31 pythonNamespaces = [ "sphinxcontrib" ];
32
33 meta = with lib; {
34 description = "Sphinx extension using KaTeX to render math in HTML";
35 homepage = "https://github.com/hagenw/sphinxcontrib-katex";
36 changelog = "https://github.com/hagenw/sphinxcontrib-katex/blob/v${version}/CHANGELOG.rst";
37 license = licenses.mit;
38 maintainers = with maintainers; [ jluttine ];
39 };
40}