pythonPackages.sphinxcontrib-katex: init at 0.5.1

This commit is contained in:
Jaakko Luttinen 2019-11-27 18:44:20 +02:00 committed by Jon
parent d7ef824b7b
commit 24219f69a3
2 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,28 @@
{ lib, buildPythonPackage, fetchPypi, pythonOlder, sphinx }:
buildPythonPackage rec {
pname = "sphinxcontrib-katex";
version = "0.5.1";
# 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;
sha256 = "0qssq2qc12rnwb6yhw3xj69cwij3jp3sqzwb6n85qp36g4vxrkb6";
};
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 ];
};
}

View File

@ -5653,6 +5653,8 @@ in {
sphinxcontrib-jsmath = callPackage ../development/python-modules/sphinxcontrib-jsmath {}; sphinxcontrib-jsmath = callPackage ../development/python-modules/sphinxcontrib-jsmath {};
sphinxcontrib-katex = callPackage ../development/python-modules/sphinxcontrib-katex { };
sphinxcontrib-qthelp = callPackage ../development/python-modules/sphinxcontrib-qthelp {}; sphinxcontrib-qthelp = callPackage ../development/python-modules/sphinxcontrib-qthelp {};
sphinxcontrib-serializinghtml = callPackage ../development/python-modules/sphinxcontrib-serializinghtml {}; sphinxcontrib-serializinghtml = callPackage ../development/python-modules/sphinxcontrib-serializinghtml {};