2019-08-19 20:26:49 +01:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, isPy27
|
|
|
|
, graphviz
|
|
|
|
, mock
|
2018-10-26 14:26:24 +01:00
|
|
|
, pyparsing
|
|
|
|
, pytest
|
|
|
|
, unittest2
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pydot_ng";
|
2018-11-04 10:35:11 +00:00
|
|
|
version = "2.0.0";
|
2018-10-26 14:26:24 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-11-04 10:35:11 +00:00
|
|
|
sha256 = "8c8073b97aa7030c28118961e2c6c92f046e4cb57aeba7df87146f7baa6530c5";
|
2018-10-26 14:26:24 +01:00
|
|
|
};
|
|
|
|
|
2019-08-19 20:26:49 +01:00
|
|
|
propagatedBuildInputs = [ graphviz pyparsing ];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
graphviz
|
|
|
|
mock
|
|
|
|
pytest
|
|
|
|
] ++ lib.optionals isPy27 [ unittest2];
|
2018-10-26 14:26:24 +01:00
|
|
|
|
|
|
|
checkPhase = ''
|
2019-08-19 20:26:49 +01:00
|
|
|
pytest
|
2018-10-26 14:26:24 +01:00
|
|
|
'';
|
|
|
|
|
2019-08-19 20:26:49 +01:00
|
|
|
meta = with lib; {
|
2018-10-26 14:26:24 +01:00
|
|
|
homepage = "https://pypi.python.org/pypi/pydot-ng";
|
|
|
|
description = "Python 3-compatible update of pydot, a Python interface to Graphviz's Dot";
|
|
|
|
license = licenses.mit;
|
2019-08-19 20:26:49 +01:00
|
|
|
maintainers = with maintainers; [ bcdarwin jonringer ];
|
2018-10-26 14:26:24 +01:00
|
|
|
};
|
|
|
|
}
|