1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-26 15:41:40 +00:00

pythonPackages.graphviz: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-17 00:29:06 -04:00 committed by Frederik Rietdijk
parent c13f598fc2
commit d954c8ff82
2 changed files with 26 additions and 17 deletions

View file

@ -0,0 +1,25 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, pkgs
}:
buildPythonPackage rec {
pname = "graphviz";
version = "0.9";
src = fetchPypi {
inherit pname version;
extension = "zip";
sha256 = "14r9brj4r31b3qy1nnn34v3l4h0n39bqxg9sn2fz4p3pp5mglnl6";
};
propagatedBuildInputs = [ pkgs.graphviz ];
meta = with stdenv.lib; {
description = "Simple Python interface for Graphviz";
homepage = https://github.com/xflr6/graphviz;
license = licenses.mit;
};
}

View file

@ -2879,23 +2879,7 @@ in {
pyte = callPackage ../development/python-modules/pyte { };
graphviz = buildPythonPackage rec {
name = "graphviz-${version}";
version = "0.9";
src = pkgs.fetchurl {
url = "mirror://pypi/g/graphviz/${name}.zip";
sha256 = "14r9brj4r31b3qy1nnn34v3l4h0n39bqxg9sn2fz4p3pp5mglnl6";
};
propagatedBuildInputs = [ pkgs.graphviz ];
meta = {
description = "Simple Python interface for Graphviz";
homepage = https://github.com/xflr6/graphviz;
license = licenses.mit;
};
};
graphviz = callPackage ../development/python-modules/graphviz { };
pygraphviz = callPackage ../development/python-modules/pygraphviz { };