pythonPackages.veryprettytable: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-29 11:48:50 -04:00
parent dcd9daa561
commit d241cc3a65
No known key found for this signature in database
GPG Key ID: 9ED59B0AB1EAF573
2 changed files with 26 additions and 17 deletions

View File

@ -0,0 +1,25 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, termcolor
, colorama
}:
buildPythonPackage rec {
pname = "veryprettytable";
version = "0.8.1";
src = fetchPypi {
inherit pname version;
sha256 = "1k1rifz8x6qcicmx2is9vgxcj0qb2f5pvzrp7zhmvbmci3yack3f";
};
propagatedBuildInputs = [ termcolor colorama ];
meta = with stdenv.lib; {
description = "A simple Python library for easily displaying tabular data in a visually appealing ASCII table format";
homepage = https://github.com/smeggingsmegger/VeryPrettyTable;
license = licenses.free;
};
}

View File

@ -4296,23 +4296,7 @@ in {
versiontools = callPackage ../development/python-modules/versiontools { };
veryprettytable = buildPythonPackage rec {
name = "veryprettytable-${version}";
version = "0.8.1";
src = pkgs.fetchurl {
url = "mirror://pypi/v/veryprettytable/${name}.tar.gz";
sha256 = "1k1rifz8x6qcicmx2is9vgxcj0qb2f5pvzrp7zhmvbmci3yack3f";
};
propagatedBuildInputs = [ self.termcolor self.colorama ];
meta = {
description = "A simple Python library for easily displaying tabular data in a visually appealing ASCII table format";
homepage = https://github.com/smeggingsmegger/VeryPrettyTable;
license = licenses.free;
};
};
veryprettytable = callPackage ../development/python-modules/veryprettytable { };
graphite-web = callPackage ../development/python-modules/graphite-web { };