Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455{ lib, buildPythonPackage, fetchPypi, replaceVars, pyparsing, graphviz, setuptools, pytestCheckHook, texliveSmall,}:
buildPythonPackage (finalAttrs: { pname = "dot2tex"; version = "2.12.0"; pyproject = true;
src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-EbCXOQuU0ab1BywIxQY35yTi+BtGN5SXLD1CMAW19TY="; };
patches = [ (replaceVars ./path.patch { inherit graphviz; }) ];
build-system = [ setuptools ];
dependencies = [ pyparsing ];
nativeCheckInputs = [ pytestCheckHook (texliveSmall.withPackages ( ps: with ps; [ preview pstricks standalone ] )) ];
disabledTests = [ "test_semicolon" ];
meta = { description = "Convert graphs generated by Graphviz to LaTeX friendly formats"; mainProgram = "dot2tex"; homepage = "https://github.com/kjellmf/dot2tex"; license = lib.licenses.mit; };})