1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 pythonOlder, 6 setuptools, 7 sphinx, 8 pytestCheckHook, 9}: 10 11buildPythonPackage rec { 12 pname = "sphinxcontrib-katex"; 13 version = "0.9.11"; 14 pyproject = true; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchPypi { 19 pname = "sphinxcontrib_katex"; 20 inherit version; 21 hash = "sha256-LTKyENILvuRRpR0ZZF9v719VaLmlTigTr/uW76ZhI4o="; 22 }; 23 24 build-system = [ setuptools ]; 25 26 dependencies = [ sphinx ]; 27 28 nativeCheckInputs = [ pytestCheckHook ]; 29 30 pythonImportsCheck = [ "sphinxcontrib.katex" ]; 31 32 pythonNamespaces = [ "sphinxcontrib" ]; 33 34 meta = with lib; { 35 description = "Sphinx extension using KaTeX to render math in HTML"; 36 homepage = "https://github.com/hagenw/sphinxcontrib-katex"; 37 changelog = "https://github.com/hagenw/sphinxcontrib-katex/blob/v${version}/CHANGELOG.rst"; 38 license = licenses.mit; 39 maintainers = with maintainers; [ jluttine ]; 40 }; 41}