2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, glibcLocales
|
2020-12-07 07:45:13 +00:00
|
|
|
, setuptools_scm
|
|
|
|
, wcwidth
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "prettytable";
|
2020-12-07 07:45:13 +00:00
|
|
|
version = "2.0.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-12-07 07:45:13 +00:00
|
|
|
sha256 = "e37acd91976fe6119172771520e58d1742c8479703489321dc1d9c85e7259922";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-12-07 07:45:13 +00:00
|
|
|
nativeBuildInputs = [ setuptools_scm ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ glibcLocales ];
|
|
|
|
|
2020-12-07 07:45:13 +00:00
|
|
|
propagatedBuildInputs = [ wcwidth ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
preCheck = ''
|
|
|
|
export LANG="en_US.UTF-8"
|
|
|
|
'';
|
|
|
|
|
2020-12-07 07:45:13 +00:00
|
|
|
# no test no longer available in pypi package
|
|
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "prettytable" ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
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.bsd3;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|