1{ stdenv, buildPythonPackage, fetchPypi, fetchpatch }:
2
3buildPythonPackage (rec {
4 pname = "urwid";
5 version = "1.3.1";
6
7 src = fetchPypi {
8 inherit pname version;
9 sha256 = "18cnd1wdjcas08x5qwa5ayw6jsfcn33w4d9f7q3s29fy6qzc1kng";
10 };
11
12 patches = [
13 # fix tests
14 (fetchpatch {
15 url = "https://github.com/urwid/urwid/commit/4b0ed8b6030450e6d99909a7c683e9642e546387.patch";
16 sha256 = "0azpn0ylbg8mfpr0y27n4lnq0ph75a4d4m9wdv3napnhf1vh9ahx";
17 })
18 # fix tests
19 (fetchpatch {
20 url = "https://github.com/floppym/urwid/commit/f68f2cf089cfd5ec45863baf59a91d5aeb0cf5c3.patch";
21 sha256 = "1b3vz7mrwz2bqvdwvbyv2j835f9lzapgw0j2km4sam76bxmgfpgq";
22 })
23 ];
24
25 postPatch = ''
26 # Several tests keep failing on Hydra
27 rm urwid/tests/test_vterm.py
28 '';
29
30 meta = with stdenv.lib; {
31 description = "A full-featured console (xterm et al.) user interface library";
32 homepage = http://excess.org/urwid;
33 repositories.git = git://github.com/wardi/urwid.git;
34 license = licenses.lgpl21;
35 maintainers = with maintainers; [ garbas ];
36 };
37})