2021-01-25 08:26:54 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, isPy3k, isPy27, glibcLocales }:
|
2017-10-29 11:12:42 +00:00
|
|
|
|
2019-08-20 16:46:06 +00:00
|
|
|
buildPythonPackage rec {
|
2017-10-29 11:12:42 +00:00
|
|
|
pname = "urwid";
|
2020-10-25 09:06:58 +00:00
|
|
|
version = "2.1.2";
|
2020-08-17 02:29:24 +00:00
|
|
|
disabled = isPy27;
|
2017-10-29 11:12:42 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-10-25 09:06:58 +00:00
|
|
|
sha256 = "588bee9c1cb208d0906a9f73c613d2bd32c3ed3702012f51efe318a3f2127eae";
|
2017-10-29 11:12:42 +00:00
|
|
|
};
|
|
|
|
|
2019-12-20 16:29:35 +00:00
|
|
|
# tests need to be able to set locale
|
|
|
|
LC_ALL = "en_US.UTF-8";
|
|
|
|
checkInputs = [ glibcLocales ];
|
|
|
|
|
2020-08-23 17:29:20 +00:00
|
|
|
# tests which assert on strings don't decode results correctly
|
|
|
|
doCheck = isPy3k;
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "urwid" ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-10-29 11:12:42 +00:00
|
|
|
description = "A full-featured console (xterm et al.) user interface library";
|
2021-01-26 00:33:42 +00:00
|
|
|
homepage = "https://excess.org/urwid";
|
2020-04-01 01:11:51 +00:00
|
|
|
repositories.git = "git://github.com/wardi/urwid.git";
|
2017-10-29 11:12:42 +00:00
|
|
|
license = licenses.lgpl21;
|
2019-07-03 09:27:39 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2017-10-29 11:12:42 +00:00
|
|
|
};
|
2019-08-20 16:46:06 +00:00
|
|
|
}
|