python39Packages.sphinxcontrib-tikz: add import check and fix patching

This commit is contained in:
Sandro Jäckel 2021-10-21 20:08:30 +02:00
parent 755a08f805
commit f58162a4bb
No known key found for this signature in database
GPG key ID: 3AF5A43A3EECC2E5

View file

@ -18,7 +18,7 @@ buildPythonPackage rec {
postPatch = ''
substituteInPlace sphinxcontrib/tikz.py \
--replace "config.latex_engine" "${texLive}/bin/pdflatex" \
--replace "config.latex_engine" "'${texLive}/bin/pdflatex'" \
--replace "system(['pdf2svg'" "system(['${pdf2svg}/bin/pdf2svg'"
'';
@ -27,6 +27,8 @@ buildPythonPackage rec {
# no tests in package
doCheck = false;
pythonImportsCheck = [ "sphinxcontrib.tikz" ];
meta = with lib; {
description = "TikZ extension for Sphinx";
homepage = "https://bitbucket.org/philexander/tikz";