mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-11 08:13:04 +00:00
Merge pull request #107872 from r-k-b/fix-xdot-numpy-and-gtk-test-dependencies
xdot: fix tests
This commit is contained in:
commit
590feeecfb
@ -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";
|
||||
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user