Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchPypi 4, sphinx 5, pdf2svg 6, texLive 7}: 8 9buildPythonPackage rec { 10 pname = "sphinxcontrib-tikz"; 11 version = "0.4.16"; 12 13 src = fetchPypi { 14 inherit pname version; 15 hash = "sha256-8f9FNx6WMopcqihUzNlQoPBGYoW2YkFi6W1iaFLD4qU="; 16 }; 17 18 postPatch = '' 19 substituteInPlace sphinxcontrib/tikz.py \ 20 --replace "config.latex_engine" "'${texLive}/bin/pdflatex'" \ 21 --replace "system(['pdf2svg'" "system(['${pdf2svg}/bin/pdf2svg'" 22 ''; 23 24 propagatedBuildInputs = [ sphinx ]; 25 26 # no tests in package 27 doCheck = false; 28 29 pythonImportsCheck = [ "sphinxcontrib.tikz" ]; 30 31 meta = with lib; { 32 description = "TikZ extension for Sphinx"; 33 homepage = "https://bitbucket.org/philexander/tikz"; 34 maintainers = with maintainers; [ ]; 35 license = licenses.bsd3; 36 }; 37 38}