aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/development/python-modules/urwid/default.nix
blob: 0846d801059a836744c1b943b227f1d9b04116a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{ stdenv, buildPythonPackage, fetchPypi, isPy3k, isPy27, glibcLocales }:

buildPythonPackage rec {
  pname = "urwid";
  version = "2.1.2";
  disabled = isPy27;

  src = fetchPypi {
    inherit pname version;
    sha256 = "588bee9c1cb208d0906a9f73c613d2bd32c3ed3702012f51efe318a3f2127eae";
  };

  # tests need to be able to set locale
  LC_ALL = "en_US.UTF-8";
  checkInputs = [ glibcLocales ];

  # tests which assert on strings don't decode results correctly
  doCheck = isPy3k;

  pythonImportsCheck = [ "urwid" ];

  meta = with stdenv.lib; {
    description = "A full-featured console (xterm et al.) user interface library";
    homepage = "http://excess.org/urwid";
    repositories.git = "git://github.com/wardi/urwid.git";
    license = licenses.lgpl21;
    maintainers = with maintainers; [ ];
  };
}