depot/third_party/nixpkgs/pkgs/development/python-modules/urwid/default.nix
Default email ae91cbe6cc Project import generated by Copybara.
GitOrigin-RevId: 536fe36e23ab0fc8b7f35c24603422eee9fc17a2
2021-02-05 18:12:51 +01:00

29 lines
801 B
Nix

{ lib, 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 lib; {
description = "A full-featured console (xterm et al.) user interface library";
homepage = "https://excess.org/urwid";
repositories.git = "git://github.com/wardi/urwid.git";
license = licenses.lgpl21;
maintainers = with maintainers; [ ];
};
}