summary refs log tree commit diff
path: root/pkgs/development/python-modules/xdot/default.nix
blob: 79f0fb13d70d48cf6be8dc026acf14348d1a2a31 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{ lib, buildPythonPackage, fetchPypi, isPy3k
, wrapGAppsHook, gobject-introspection, pygobject3, graphviz, gnome3, gtk3 }:

buildPythonPackage rec {
  pname = "xdot";
  version = "1.0";

  src = fetchPypi {
    inherit pname version;
    sha256 = "18a2ri8vggaxy7im1x9hki34v519y5jy4n07zpqq5br9syb7h1ky";
  };

  disabled = !isPy3k;

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

  meta = with lib; {
    description = "xdot.py is an interactive viewer for graphs written in Graphviz's dot";
    homepage = https://github.com/jrfonseca/xdot.py;
    license = licenses.lgpl3Plus;
  };
}