pythonPackages.prettytable: refactor move to python-modules
This commit is contained in:
parent
80e9523d4c
commit
51a75d353b
28
pkgs/development/python-modules/prettytable/default.nix
Normal file
28
pkgs/development/python-modules/prettytable/default.nix
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
{ stdenv
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchPypi
|
||||||
|
, glibcLocales
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "prettytable";
|
||||||
|
version = "0.7.1";
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
|
sha256 = "599bc5b4b9602e28294cf795733c889c26dd934aa7e0ee9cff9b905d4fbad188";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildInputs = [ glibcLocales ];
|
||||||
|
|
||||||
|
preCheck = ''
|
||||||
|
export LANG="en_US.UTF-8"
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
description = "Simple Python library for easily displaying tabular data in a visually appealing ASCII table format";
|
||||||
|
homepage = http://code.google.com/p/prettytable/;
|
||||||
|
license = licenses.bsd0;
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
@ -3213,26 +3213,7 @@ in {
|
|||||||
|
|
||||||
premailer = callPackage ../development/python-modules/premailer { };
|
premailer = callPackage ../development/python-modules/premailer { };
|
||||||
|
|
||||||
prettytable = buildPythonPackage rec {
|
prettytable = callPackage ../development/python-modules/prettytable { };
|
||||||
name = "prettytable-0.7.1";
|
|
||||||
|
|
||||||
src = pkgs.fetchurl {
|
|
||||||
url = "mirror://pypi/P/PrettyTable/${name}.tar.bz2";
|
|
||||||
sha256 = "599bc5b4b9602e28294cf795733c889c26dd934aa7e0ee9cff9b905d4fbad188";
|
|
||||||
};
|
|
||||||
|
|
||||||
buildInputs = [ pkgs.glibcLocales ];
|
|
||||||
|
|
||||||
preCheck = ''
|
|
||||||
export LANG="en_US.UTF-8"
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = {
|
|
||||||
description = "Simple Python library for easily displaying tabular data in a visually appealing ASCII table format";
|
|
||||||
homepage = http://code.google.com/p/prettytable/;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
prompt_toolkit = callPackage ../development/python-modules/prompt_toolkit { };
|
prompt_toolkit = callPackage ../development/python-modules/prompt_toolkit { };
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user