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