2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
exceptiongroup,
|
|
|
|
fetchFromGitHub,
|
|
|
|
glibcLocales,
|
|
|
|
pygobject3,
|
|
|
|
pyserial,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
pyzmq,
|
|
|
|
setuptools,
|
|
|
|
setuptools-scm,
|
|
|
|
tornado,
|
|
|
|
trio,
|
|
|
|
twisted,
|
|
|
|
typing-extensions,
|
|
|
|
wcwidth,
|
2022-03-30 09:31:56 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "urwid";
|
2024-06-20 14:57:18 +00:00
|
|
|
version = "2.6.14";
|
2024-01-25 14:12:00 +00:00
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2022-03-30 09:31:56 +00:00
|
|
|
|
2024-01-13 08:15:51 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "urwid";
|
|
|
|
repo = "urwid";
|
|
|
|
rev = "refs/tags/${version}";
|
2024-06-20 14:57:18 +00:00
|
|
|
hash = "sha256-UDYIAAAKmdqtTzV8yn1zkEH0PvOUmVXodxF1ZyubgE0=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
postPatch = ''
|
|
|
|
sed -i '/addopts =/d' pyproject.toml
|
|
|
|
'';
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
build-system = [
|
2023-11-16 04:20:00 +00:00
|
|
|
setuptools
|
|
|
|
setuptools-scm
|
2023-02-02 18:25:31 +00:00
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
dependencies = [
|
2024-02-29 20:09:43 +00:00
|
|
|
typing-extensions
|
|
|
|
wcwidth
|
|
|
|
];
|
|
|
|
|
2024-01-25 14:12:00 +00:00
|
|
|
passthru.optional-dependencies = {
|
2024-06-05 15:53:02 +00:00
|
|
|
glib = [ pygobject3 ];
|
|
|
|
tornado = [ tornado ];
|
2024-01-25 14:12:00 +00:00
|
|
|
trio = [
|
|
|
|
exceptiongroup
|
|
|
|
trio
|
|
|
|
];
|
2024-06-05 15:53:02 +00:00
|
|
|
twisted = [ twisted ];
|
|
|
|
zmq = [ pyzmq ];
|
|
|
|
serial = [ pyserial ];
|
|
|
|
lcd = [ pyserial ];
|
2024-01-25 14:12:00 +00:00
|
|
|
};
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
nativeCheckInputs = [
|
|
|
|
glibcLocales
|
|
|
|
pytestCheckHook
|
2024-01-25 14:12:00 +00:00
|
|
|
] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
|
2023-11-16 04:20:00 +00:00
|
|
|
|
|
|
|
env.LC_ALL = "en_US.UTF8";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pytestFlagsArray = [ "tests" ];
|
2024-01-13 08:15:51 +00:00
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
disabledTestPaths = [
|
|
|
|
# expect call hangs
|
2024-01-13 08:15:51 +00:00
|
|
|
"tests/test_vterm.py"
|
2023-11-16 04:20:00 +00:00
|
|
|
];
|
2020-09-25 04:45:31 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "urwid" ];
|
2020-09-25 04:45:31 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Full-featured console (xterm et al.) user interface library";
|
2024-01-25 14:12:00 +00:00
|
|
|
changelog = "https://github.com/urwid/urwid/releases/tag/${version}";
|
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
|
|
|
};
|
|
|
|
}
|