2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2018-10-26 01:52:52 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, glibcLocales
|
2021-06-03 10:09:11 +00:00
|
|
|
, setuptools-scm
|
2020-11-29 22:33:52 +00:00
|
|
|
, wcwidth
|
2021-05-12 19:02:50 +00:00
|
|
|
, importlib-metadata
|
|
|
|
, pythonOlder
|
2018-10-26 01:52:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "prettytable";
|
2022-01-14 00:58:40 +00:00
|
|
|
version = "3.0.0";
|
2018-10-26 01:52:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-01-14 00:58:40 +00:00
|
|
|
sha256 = "69fe75d78ac8651e16dd61265b9e19626df5d630ae294fc31687aa6037b97a58";
|
2018-10-26 01:52:52 +00:00
|
|
|
};
|
|
|
|
|
2021-06-03 10:09:11 +00:00
|
|
|
nativeBuildInputs = [ setuptools-scm ];
|
2018-10-26 01:52:52 +00:00
|
|
|
buildInputs = [ glibcLocales ];
|
|
|
|
|
2021-05-12 19:02:50 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
wcwidth
|
|
|
|
] ++ lib.optionals (pythonOlder "3.8") [
|
|
|
|
importlib-metadata
|
|
|
|
];
|
2020-11-29 22:33:52 +00:00
|
|
|
|
2018-10-26 01:52:52 +00:00
|
|
|
preCheck = ''
|
|
|
|
export LANG="en_US.UTF-8"
|
|
|
|
'';
|
|
|
|
|
2020-11-29 22:33:52 +00:00
|
|
|
# no test no longer available in pypi package
|
|
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "prettytable" ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-10-26 01:52:52 +00:00
|
|
|
description = "Simple Python library for easily displaying tabular data in a visually appealing ASCII table format";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://code.google.com/p/prettytable/";
|
2018-11-21 18:33:35 +00:00
|
|
|
license = licenses.bsd3;
|
2018-10-26 01:52:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|