pythonPackages.pydot_ng: fix build
This commit is contained in:
parent
c4592aa161
commit
b452b6efad
@ -1,10 +1,9 @@
|
|||||||
{ stdenv
|
{ lib, buildPythonPackage, fetchPypi, isPy27
|
||||||
, buildPythonPackage
|
, graphviz
|
||||||
, fetchPypi
|
, mock
|
||||||
, pyparsing
|
, pyparsing
|
||||||
, pytest
|
, pytest
|
||||||
, unittest2
|
, unittest2
|
||||||
, pkgs
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
@ -16,19 +15,22 @@ buildPythonPackage rec {
|
|||||||
sha256 = "8c8073b97aa7030c28118961e2c6c92f046e4cb57aeba7df87146f7baa6530c5";
|
sha256 = "8c8073b97aa7030c28118961e2c6c92f046e4cb57aeba7df87146f7baa6530c5";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ pytest unittest2 ];
|
propagatedBuildInputs = [ graphviz pyparsing ];
|
||||||
propagatedBuildInputs = [ pkgs.graphviz pyparsing ];
|
|
||||||
|
checkInputs = [
|
||||||
|
graphviz
|
||||||
|
mock
|
||||||
|
pytest
|
||||||
|
] ++ lib.optionals isPy27 [ unittest2];
|
||||||
|
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
mkdir test/my_tests
|
pytest
|
||||||
py.test test
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with lib; {
|
||||||
homepage = "https://pypi.python.org/pypi/pydot-ng";
|
homepage = "https://pypi.python.org/pypi/pydot-ng";
|
||||||
description = "Python 3-compatible update of pydot, a Python interface to Graphviz's Dot";
|
description = "Python 3-compatible update of pydot, a Python interface to Graphviz's Dot";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = [ maintainers.bcdarwin ];
|
maintainers = with maintainers; [ bcdarwin jonringer ];
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -4311,7 +4311,7 @@ in {
|
|||||||
inherit (pkgs) graphviz;
|
inherit (pkgs) graphviz;
|
||||||
};
|
};
|
||||||
|
|
||||||
pydot_ng = callPackage ../development/python-modules/pydot_ng { };
|
pydot_ng = callPackage ../development/python-modules/pydot_ng { graphviz = pkgs.graphviz; };
|
||||||
|
|
||||||
pyelftools = callPackage ../development/python-modules/pyelftools { };
|
pyelftools = callPackage ../development/python-modules/pyelftools { };
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user