pythonPackages.prettytable: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov
2018-10-25 21:52:52 -04:00
committed by Frederik Rietdijk
parent 80e9523d4c
commit 51a75d353b
2 changed files with 29 additions and 20 deletions

View 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;
};
}