at 22.05-pre 28 lines 839 B view raw
1{ lib, buildPythonPackage, fetchPypi, pythonOlder, sphinx }: 2 3buildPythonPackage rec { 4 pname = "sphinxcontrib-katex"; 5 version = "0.8.6"; 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 = "c3dcdb2984626a0e6c1b11bc2580c7bbc6ab3711879b23bbf26c028a0f4fd4f2"; 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}