Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.0 kB · 50 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051{ lib, buildPythonPackage, fetchPypi, replaceVars, pyparsing, graphviz, pytestCheckHook, texliveSmall,}:
buildPythonPackage rec { pname = "dot2tex"; version = "2.11.3"; format = "setuptools";
src = fetchPypi { inherit pname version; hash = "sha256-KZoq8FruW74CV6VipQapPieSk9XDjyjQirissyM/584="; };
patches = [ (replaceVars ./path.patch { inherit graphviz; }) ./test.patch # https://github.com/kjellmf/dot2tex/issues/5
# https://github.com/xyz2tex/dot2tex/pull/104 does not merge cleanly ./remove-duplicate-script.patch ];
propagatedBuildInputs = [ pyparsing ];
nativeCheckInputs = [ pytestCheckHook (texliveSmall.withPackages ( ps: with ps; [ preview pstricks ] )) ];
meta = with lib; { description = "Convert graphs generated by Graphviz to LaTeX friendly formats"; mainProgram = "dot2tex"; homepage = "https://github.com/kjellmf/dot2tex"; license = licenses.mit; };}