2021-01-25 09:26:54 +01:00
|
|
|
{ lib
|
2018-10-26 03:52:52 +02:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, glibcLocales
|
2020-11-29 23:33:52 +01:00
|
|
|
, setuptools_scm
|
|
|
|
, wcwidth
|
2018-10-26 03:52:52 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "prettytable";
|
2020-11-29 15:04:36 +01:00
|
|
|
version = "2.0.0";
|
2018-10-26 03:52:52 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-11-29 15:04:36 +01:00
|
|
|
sha256 = "e37acd91976fe6119172771520e58d1742c8479703489321dc1d9c85e7259922";
|
2018-10-26 03:52:52 +02:00
|
|
|
};
|
|
|
|
|
2020-11-29 23:33:52 +01:00
|
|
|
nativeBuildInputs = [ setuptools_scm ];
|
2018-10-26 03:52:52 +02:00
|
|
|
buildInputs = [ glibcLocales ];
|
|
|
|
|
2020-11-29 23:33:52 +01:00
|
|
|
propagatedBuildInputs = [ wcwidth ];
|
|
|
|
|
2018-10-26 03:52:52 +02:00
|
|
|
preCheck = ''
|
|
|
|
export LANG="en_US.UTF-8"
|
|
|
|
'';
|
|
|
|
|
2020-11-29 23:33:52 +01:00
|
|
|
# no test no longer available in pypi package
|
|
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "prettytable" ];
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2018-10-26 03:52:52 +02:00
|
|
|
description = "Simple Python library for easily displaying tabular data in a visually appealing ASCII table format";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://code.google.com/p/prettytable/";
|
2018-11-21 19:33:35 +01:00
|
|
|
license = licenses.bsd3;
|
2018-10-26 03:52:52 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|