Skip to content

Commit

Permalink
pythonPackages.pydot: fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
FRidh committed May 3, 2017
1 parent d317e83 commit 97630b2
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 14 deletions.
27 changes: 27 additions & 0 deletions pkgs/development/python-modules/pydot/default.nix
Original file line number Diff line number Diff line change
@@ -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 ];
};
}
15 changes: 1 addition & 14 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit 97630b2

Please sign in to comment.