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