e7ec2969af
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
63 lines
1.1 KiB
Nix
63 lines
1.1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
|
|
# build-system
|
|
, setuptools
|
|
, setuptools-scm
|
|
|
|
# tests
|
|
, glibcLocales
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "urwid";
|
|
version = "2.2.3";
|
|
format = "pyproject";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "urwid";
|
|
repo = "urwid";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-oPb2h/+gaqkZTXIiESjExMfBNnOzDvoMkXvkZ/+KVwo=";
|
|
};
|
|
|
|
postPatch = ''
|
|
sed -i '/addopts =/d' pyproject.toml
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
setuptools-scm
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
glibcLocales
|
|
pytestCheckHook
|
|
];
|
|
|
|
env.LC_ALL = "en_US.UTF8";
|
|
|
|
pytestFlagsArray = [
|
|
"tests"
|
|
];
|
|
|
|
disabledTestPaths = [
|
|
# expect call hangs
|
|
"tests/test_vterm.py"
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"urwid"
|
|
];
|
|
|
|
meta = with lib; {
|
|
changelog = "https://github.com/urwid/urwid/releases/tag/${version}";
|
|
description = "A full-featured console (xterm et al.) user interface library";
|
|
downloadPage = "https://github.com/urwid/urwid";
|
|
homepage = "https://urwid.org/";
|
|
license = licenses.lgpl21Plus;
|
|
maintainers = with maintainers; [ ];
|
|
};
|
|
}
|