silx: 2.1.1 -> 2.1.2 (#361612)
[NixPkgs.git] / pkgs / development / python-modules / dot2tex / default.nix
blobacd9bbc34a1f981322804bacc7ad8f0703e294c0
2   lib,
3   buildPythonPackage,
4   fetchPypi,
5   substituteAll,
6   pyparsing,
7   graphviz,
8   pytestCheckHook,
9   texliveSmall,
12 buildPythonPackage rec {
13   pname = "dot2tex";
14   version = "2.11.3";
15   format = "setuptools";
17   src = fetchPypi {
18     inherit pname version;
19     hash = "sha256-KZoq8FruW74CV6VipQapPieSk9XDjyjQirissyM/584=";
20   };
22   patches = [
23     (substituteAll {
24       src = ./path.patch;
25       inherit graphviz;
26     })
27     ./test.patch # https://github.com/kjellmf/dot2tex/issues/5
29     # https://github.com/xyz2tex/dot2tex/pull/104 does not merge cleanly
30     ./remove-duplicate-script.patch
31   ];
33   propagatedBuildInputs = [ pyparsing ];
35   nativeCheckInputs = [
36     pytestCheckHook
37     (texliveSmall.withPackages (
38       ps: with ps; [
39         preview
40         pstricks
41       ]
42     ))
43   ];
45   meta = with lib; {
46     description = "Convert graphs generated by Graphviz to LaTeX friendly formats";
47     mainProgram = "dot2tex";
48     homepage = "https://github.com/kjellmf/dot2tex";
49     license = licenses.mit;
50   };