1{ lib, buildPythonPackage, fetchPypi, isPy3k, isPy27, glibcLocales }:
2
3buildPythonPackage rec {
4 pname = "urwid";
5 version = "2.1.2";
6 disabled = isPy27;
7
8 src = fetchPypi {
9 inherit pname version;
10 sha256 = "588bee9c1cb208d0906a9f73c613d2bd32c3ed3702012f51efe318a3f2127eae";
11 };
12
13 # tests need to be able to set locale
14 LC_ALL = "en_US.UTF-8";
15 checkInputs = [ glibcLocales ];
16
17 # tests which assert on strings don't decode results correctly
18 doCheck = isPy3k;
19
20 pythonImportsCheck = [ "urwid" ];
21
22 meta = with lib; {
23 description = "A full-featured console (xterm et al.) user interface library";
24 homepage = "https://excess.org/urwid";
25 repositories.git = "git://github.com/wardi/urwid.git";
26 license = licenses.lgpl21;
27 maintainers = with maintainers; [ ];
28 };
29}