pythonPackages.pydot_ng: refactor move to python-modules
This commit is contained in:
parent
e4c239aad9
commit
570b442fcd
34
pkgs/development/python-modules/pydot_ng/default.nix
Normal file
34
pkgs/development/python-modules/pydot_ng/default.nix
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
{ stdenv
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchPypi
|
||||||
|
, pyparsing
|
||||||
|
, pytest
|
||||||
|
, unittest2
|
||||||
|
, pkgs
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "pydot_ng";
|
||||||
|
version = "1.0.0";
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
|
sha256 = "0h8k8wlzvnb40v4js7afgfyhp3wasmb1kg4gr6z7ck63iv8fq864";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildInputs = [ pytest unittest2 ];
|
||||||
|
propagatedBuildInputs = [ pkgs.graphviz pyparsing ];
|
||||||
|
|
||||||
|
checkPhase = ''
|
||||||
|
mkdir test/my_tests
|
||||||
|
py.test test
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
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;
|
||||||
|
maintainers = [ maintainers.bcdarwin ];
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
@ -3299,29 +3299,7 @@ in {
|
|||||||
|
|
||||||
pydot = callPackage ../development/python-modules/pydot { };
|
pydot = callPackage ../development/python-modules/pydot { };
|
||||||
|
|
||||||
pydot_ng = buildPythonPackage rec {
|
pydot_ng = callPackage ../development/python-modules/pydot_ng { };
|
||||||
name = "pydot_ng-1.0.0";
|
|
||||||
|
|
||||||
src = pkgs.fetchurl {
|
|
||||||
url = "mirror://pypi/p/pydot-ng/${name}.tar.gz";
|
|
||||||
sha256 = "0h8k8wlzvnb40v4js7afgfyhp3wasmb1kg4gr6z7ck63iv8fq864";
|
|
||||||
};
|
|
||||||
|
|
||||||
buildInputs = [ self.pytest self.unittest2 ];
|
|
||||||
propagatedBuildInputs = [ pkgs.graphviz self.pyparsing ];
|
|
||||||
|
|
||||||
checkPhase = ''
|
|
||||||
mkdir test/my_tests
|
|
||||||
py.test test
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = {
|
|
||||||
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;
|
|
||||||
maintainers = [ maintainers.bcdarwin ];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
pyelftools = buildPythonPackage rec {
|
pyelftools = buildPythonPackage rec {
|
||||||
pname = "pyelftools";
|
pname = "pyelftools";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user