diff --git a/pkgs/development/python-modules/xdot/default.nix b/pkgs/development/python-modules/xdot/default.nix index e28deaf07d64..fa24256b6a00 100644 --- a/pkgs/development/python-modules/xdot/default.nix +++ b/pkgs/development/python-modules/xdot/default.nix @@ -15,6 +15,10 @@ buildPythonPackage rec { propagatedBuildInputs = [ gobject-introspection pygobject3 graphviz gtk3 numpy ]; checkInputs = [ xvfb-run ]; + postInstall = '' + wrapProgram "$out/bin/xdot" --prefix PATH : "${lib.makeBinPath [ graphviz ]}" + ''; + checkPhase = '' xvfb-run -s '-screen 0 800x600x24' ${python3.interpreter} nix_run_setup test ''; diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 6569bf250ddb..52784ad2075d 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -10143,7 +10143,9 @@ in { xdis = callPackage ../development/python-modules/xdis { }; - xdot = callPackage ../development/python-modules/xdot { }; + xdot = callPackage ../development/python-modules/xdot { + inherit (pkgs) graphviz; + }; xenomapper = callPackage ../applications/science/biology/xenomapper { };