Skip to content

Commit

Permalink
Merge pull request #107872 from r-k-b/fix-xdot-numpy-and-gtk-test-dep…
Browse files Browse the repository at this point in the history
…endencies

xdot: fix tests
  • Loading branch information
SuperSandro2000 committed Jan 3, 2021
2 parents 6a20b43 + 6d355e4 commit 590feee
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions pkgs/development/python-modules/xdot/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{ lib, buildPythonPackage, fetchPypi, isPy3k
, wrapGAppsHook, gobject-introspection, pygobject3, graphviz, gtk3 }:
{ lib, buildPythonPackage, fetchPypi, isPy3k, python3, xvfb_run, stdenv
, wrapGAppsHook, gobject-introspection, pygobject3, graphviz, gtk3, numpy }:

buildPythonPackage rec {
pname = "xdot";
Expand All @@ -11,9 +11,16 @@ buildPythonPackage rec {
};

disabled = !isPy3k;

nativeBuildInputs = [ wrapGAppsHook ];
propagatedBuildInputs = [ gobject-introspection pygobject3 graphviz gtk3 ];
propagatedBuildInputs = [ gobject-introspection pygobject3 graphviz gtk3 numpy ];
checkInputs = [ xvfb_run ];

checkPhase = ''
xvfb-run -s '-screen 0 800x600x24' ${python3.interpreter} nix_run_setup test
'';

# https://github.com/NixOS/nixpkgs/pull/107872#issuecomment-752175866
doCheck = stdenv.isLinux;

meta = with lib; {
description = "An interactive viewer for graphs written in Graphviz's dot";
Expand Down

0 comments on commit 590feee

Please sign in to comment.