python39Packages.sphinxcontrib-tikz: add import check and fix patching
This commit is contained in:
parent
755a08f805
commit
f58162a4bb
1 changed files with 3 additions and 1 deletions
|
@ -18,7 +18,7 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace sphinxcontrib/tikz.py \
|
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'"
|
--replace "system(['pdf2svg'" "system(['${pdf2svg}/bin/pdf2svg'"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
@ -27,6 +27,8 @@ buildPythonPackage rec {
|
||||||
# no tests in package
|
# no tests in package
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "sphinxcontrib.tikz" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "TikZ extension for Sphinx";
|
description = "TikZ extension for Sphinx";
|
||||||
homepage = "https://bitbucket.org/philexander/tikz";
|
homepage = "https://bitbucket.org/philexander/tikz";
|
||||||
|
|
Loading…
Reference in a new issue