depot/third_party/nixpkgs/pkgs/development/python-modules/sphinxcontrib-tikz/default.nix
Default email 88abffb7d2 Project import generated by Copybara.
GitOrigin-RevId: bc9b956714ed6eac5f8888322aac5bc41389defa
2021-09-18 12:52:07 +02:00

37 lines
804 B
Nix

{ lib
, substituteAll
, buildPythonPackage
, fetchPypi
, sphinx
, pdf2svg
, texLive
}:
buildPythonPackage rec {
pname = "sphinxcontrib-tikz";
version = "0.4.14";
src = fetchPypi {
inherit pname version;
sha256 = "1614a45c960b80009dd42f96689122c9c0781018a0c5ec5828f4cdc5e35b11ad";
};
postPatch = ''
substituteInPlace sphinxcontrib/tikz.py \
--replace "config.latex_engine" "${texLive}/bin/pdflatex" \
--replace "system(['pdf2svg'" "system(['${pdf2svg}/bin/pdf2svg'"
'';
propagatedBuildInputs = [ sphinx ];
# no tests in package
doCheck = false;
meta = with lib; {
description = "TikZ extension for Sphinx";
homepage = "https://bitbucket.org/philexander/tikz";
maintainers = with maintainers; [ costrouc ];
license = licenses.bsd3;
};
}