1{ lib
2, buildPythonPackage
3, fetchPypi
4
5# build-system
6, setuptools
7, setuptools-scm
8, wheel
9
10# tests
11, glibcLocales
12, pytestCheckHook
13}:
14
15buildPythonPackage rec {
16 pname = "urwid";
17 version = "2.2.1";
18 format = "pyproject";
19
20 src = fetchPypi {
21 inherit pname version;
22 hash = "sha256-4zkRqxjyxz/dvpvyFtAh504gstWqm+MEA8WPVRMbuKE=";
23 };
24
25 postPatch = ''
26 sed -i '/addopts =/d' pyproject.toml
27 '';
28
29 nativeBuildInputs = [
30 setuptools
31 setuptools-scm
32 wheel
33 ];
34
35 nativeCheckInputs = [
36 glibcLocales
37 pytestCheckHook
38 ];
39
40 env.LC_ALL = "en_US.UTF8";
41
42 disabledTestPaths = [
43 # expect call hangs
44 "urwid/tests/test_vterm.py"
45 ];
46
47 pythonImportsCheck = [
48 "urwid"
49 ];
50
51 meta = with lib; {
52 changelog = "https://github.com/urwid/urwid/releases/tag/${version}";
53 description = "A full-featured console (xterm et al.) user interface library";
54 downloadPage = "https://github.com/urwid/urwid";
55 homepage = "https://urwid.org/";
56 license = licenses.lgpl21Plus;
57 maintainers = with maintainers; [ ];
58 };
59}