diff --git a/pkgs/development/python-modules/pydot/default.nix b/pkgs/development/python-modules/pydot/default.nix new file mode 100644 index 000000000000..38123acd32ec --- /dev/null +++ b/pkgs/development/python-modules/pydot/default.nix @@ -0,0 +1,27 @@ +{ lib +, buildPythonPackage +, fetchPypi +, chardet +, pyparsing +, graphviz +}: + +buildPythonPackage rec { + pname = "pydot"; + version = "1.2.3"; + name = "${pname}-${version}"; + + src = fetchPypi { + inherit pname version; + sha256 = "edb5d3f249f97fbd9c4bb16959e61bc32ecf40eee1a9f6d27abe8d01c0a73502"; + }; + checkInputs = [ chardet ]; + # No tests in archive + doCheck = false; + propagatedBuildInputs = [pyparsing graphviz]; + meta = { + homepage = https://github.com/erocarrera/pydot; + description = "Allows to easily create both directed and non directed graphs from Python"; + licenses = with lib.licenses; [ mit ]; + }; +} \ No newline at end of file diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index f2a6eab2d23d..73cee10e8732 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -19838,20 +19838,7 @@ in { }; }); - pydot = buildPythonPackage rec { - name = "pydot-1.2.3"; - disabled = isPy3k; - - src = pkgs.fetchurl { - url = "mirror://pypi/p/pydot/${name}.tar.gz"; - sha256 = "edb5d3f249f97fbd9c4bb16959e61bc32ecf40eee1a9f6d27abe8d01c0a73502"; - }; - propagatedBuildInputs = with self; [pyparsing pkgs.graphviz]; - meta = { - homepage = https://github.com/erocarrera/pydot; - description = "Allows to easily create both directed and non directed graphs from Python"; - }; - }; + pydot = callPackage ../development/python-modules/pydot { }; pydot_ng = buildPythonPackage rec { name = "pydot_ng-1.0.0";