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