2022-03-30 09:31:56 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2023-11-16 04:20:00 +00:00
|
|
|
|
|
|
|
# build-system
|
|
|
|
, setuptools
|
|
|
|
, setuptools-scm
|
|
|
|
, wheel
|
|
|
|
|
|
|
|
# tests
|
2022-03-30 09:31:56 +00:00
|
|
|
, glibcLocales
|
2023-11-16 04:20:00 +00:00
|
|
|
, pytestCheckHook
|
2022-03-30 09:31:56 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "urwid";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "2.2.1";
|
|
|
|
format = "pyproject";
|
2022-03-30 09:31:56 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-11-16 04:20:00 +00:00
|
|
|
hash = "sha256-4zkRqxjyxz/dvpvyFtAh504gstWqm+MEA8WPVRMbuKE=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
postPatch = ''
|
|
|
|
sed -i '/addopts =/d' pyproject.toml
|
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
setuptools-scm
|
|
|
|
wheel
|
2023-02-02 18:25:31 +00:00
|
|
|
];
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
nativeCheckInputs = [
|
|
|
|
glibcLocales
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
env.LC_ALL = "en_US.UTF8";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
disabledTestPaths = [
|
|
|
|
# expect call hangs
|
|
|
|
"urwid/tests/test_vterm.py"
|
|
|
|
];
|
2020-09-25 04:45:31 +00:00
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"urwid"
|
|
|
|
];
|
2020-09-25 04:45:31 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2023-11-16 04:20:00 +00:00
|
|
|
changelog = "https://github.com/urwid/urwid/releases/tag/${version}";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A full-featured console (xterm et al.) user interface library";
|
2023-11-16 04:20:00 +00:00
|
|
|
downloadPage = "https://github.com/urwid/urwid";
|
2022-03-30 09:31:56 +00:00
|
|
|
homepage = "https://urwid.org/";
|
|
|
|
license = licenses.lgpl21Plus;
|
2023-08-04 22:07:22 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|