1{ lib
2, substituteAll
3, buildPythonPackage
4, fetchPypi
5, sphinx
6, pdf2svg
7, texLive
8}:
9
10buildPythonPackage rec {
11 pname = "sphinxcontrib-tikz";
12 version = "0.4.8";
13
14 src = fetchPypi {
15 inherit pname version;
16 sha256 = "1rvm0l40iz1z03d09irkqdwzi9gs6pn0203hylaqbix5c7gabwhy";
17 };
18
19 patches = [
20 (substituteAll {
21 src = ./binary-paths.patch;
22 inherit texLive pdf2svg;
23 })
24 ];
25
26 propagatedBuildInputs = [ sphinx ];
27
28 # no tests in package
29 doCheck = false;
30
31 meta = with lib; {
32 description = "TikZ extension for Sphinx";
33 homepage = https://bitbucket.org/philexander/tikz;
34 maintainers = with maintainers; [ costrouc ];
35 license = licenses.bsd3;
36 };
37
38}