at 22.05-pre 1.0 kB view raw
1{ lib, buildPythonPackage, fetchPypi, isPy3k, python3, xvfb-run 2, wrapGAppsHook, gobject-introspection, pygobject3, graphviz, gtk3, numpy }: 3 4buildPythonPackage rec { 5 pname = "xdot"; 6 version = "1.2"; 7 8 src = fetchPypi { 9 inherit pname version; 10 sha256 = "3df91e6c671869bd2a6b2a8883fa3476dbe2ba763bd2a7646cf848a9eba71b70"; 11 }; 12 13 disabled = !isPy3k; 14 nativeBuildInputs = [ wrapGAppsHook ]; 15 propagatedBuildInputs = [ gobject-introspection pygobject3 graphviz gtk3 numpy ]; 16 checkInputs = [ xvfb-run ]; 17 18 checkPhase = '' 19 xvfb-run -s '-screen 0 800x600x24' ${python3.interpreter} nix_run_setup test 20 ''; 21 22 # https://github.com/NixOS/nixpkgs/pull/107872#issuecomment-752175866 23 # cannot import name '_gi' from partially initialized module 'gi' (most likely due to a circular import) 24 doCheck = false; 25 26 meta = with lib; { 27 description = "An interactive viewer for graphs written in Graphviz's dot"; 28 homepage = "https://github.com/jrfonseca/xdot.py"; 29 license = licenses.lgpl3Plus; 30 }; 31}