diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/dot2tex/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/dot2tex/default.nix | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/dot2tex/default.nix b/nixpkgs/pkgs/development/python-modules/dot2tex/default.nix index 955d57ffd5c6..15e0c655f80f 100644 --- a/nixpkgs/pkgs/development/python-modules/dot2tex/default.nix +++ b/nixpkgs/pkgs/development/python-modules/dot2tex/default.nix @@ -1,20 +1,22 @@ { lib -, python , buildPythonPackage +, fetchpatch , fetchPypi , substituteAll , pyparsing , graphviz +, pytestCheckHook , texlive }: buildPythonPackage rec { pname = "dot2tex"; version = "2.11.3"; + format = "setuptools"; src = fetchPypi { inherit pname version; - sha256 = "1kp77wiv7b5qib82i3y3sn9r49rym43aaqm5aw1bwnzfbbq2m6i9"; + hash = "sha256-KZoq8FruW74CV6VipQapPieSk9XDjyjQirissyM/584="; }; patches = [ @@ -23,24 +25,25 @@ buildPythonPackage rec { 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 ]; + propagatedBuildInputs = [ + pyparsing + ]; nativeCheckInputs = [ + pytestCheckHook (texlive.combine { inherit (texlive) scheme-small preview pstricks; }) ]; - checkPhase = '' - ${python.interpreter} tests/test_dot2tex.py - ''; - meta = with lib; { description = "Convert graphs generated by Graphviz to LaTeX friendly formats"; homepage = "https://github.com/kjellmf/dot2tex"; license = licenses.mit; }; - } |