1{ lib, buildPythonPackage, fetchPypi, isPy27
2, graphviz
3, mock
4, pyparsing
5, pytest
6, unittest2
7}:
8
9buildPythonPackage rec {
10 pname = "pydot_ng";
11 version = "2.0.0";
12
13 src = fetchPypi {
14 inherit pname version;
15 sha256 = "8c8073b97aa7030c28118961e2c6c92f046e4cb57aeba7df87146f7baa6530c5";
16 };
17
18 propagatedBuildInputs = [ graphviz pyparsing ];
19
20 checkInputs = [
21 graphviz
22 mock
23 pytest
24 ] ++ lib.optionals isPy27 [ unittest2];
25
26 checkPhase = ''
27 pytest
28 '';
29
30 meta = with lib; {
31 homepage = "https://pypi.python.org/pypi/pydot-ng";
32 description = "Python 3-compatible update of pydot, a Python interface to Graphviz's Dot";
33 license = licenses.mit;
34 maintainers = with maintainers; [ bcdarwin jonringer ];
35 };
36}