python312Packages.urwid: 2.2.3 -> 2.4.3

Diff: https://github.com/urwid/urwid/compare/refs/tags/2.2.3...2.4.3

Changelog: https://github.com/urwid/urwid/releases/tag/2.4.3
This commit is contained in:
Fabian Affolter
2024-01-20 09:08:29 +01:00
parent 57fc0902d1
commit 5d49eb0352
@@ -1,26 +1,32 @@
{ lib
, buildPythonPackage
, exceptiongroup
, fetchFromGitHub
# build-system
, glibcLocales
, pygobject3
, pyserial
, pytestCheckHook
, pythonOlder
, pyzmq
, setuptools
, setuptools-scm
# tests
, glibcLocales
, pytestCheckHook
, tornado
, trio
, twisted
}:
buildPythonPackage rec {
pname = "urwid";
version = "2.2.3";
format = "pyproject";
version = "2.4.3";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "urwid";
repo = "urwid";
rev = "refs/tags/${version}";
hash = "sha256-oPb2h/+gaqkZTXIiESjExMfBNnOzDvoMkXvkZ/+KVwo=";
hash = "sha256-raDsUZaXBC4s/48KNH8Thrpm8Bq8wj9+Rahk+LkxcDo=";
};
postPatch = ''
@@ -32,10 +38,35 @@ buildPythonPackage rec {
setuptools-scm
];
passthru.optional-dependencies = {
glib = [
pygobject3
];
tornado = [
tornado
];
trio = [
exceptiongroup
trio
];
twisted = [
twisted
];
zmq = [
pyzmq
];
serial = [
pyserial
];
lcd = [
pyserial
];
};
nativeCheckInputs = [
glibcLocales
pytestCheckHook
];
] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
env.LC_ALL = "en_US.UTF8";
@@ -53,8 +84,8 @@ buildPythonPackage rec {
];
meta = with lib; {
changelog = "https://github.com/urwid/urwid/releases/tag/${version}";
description = "A full-featured console (xterm et al.) user interface library";
changelog = "https://github.com/urwid/urwid/releases/tag/${version}";
downloadPage = "https://github.com/urwid/urwid";
homepage = "https://urwid.org/";
license = licenses.lgpl21Plus;