python312Packages.urwidtrees: refactor

This commit is contained in:
Fabian Affolter
2024-02-17 15:38:51 +01:00
parent db91fb88ef
commit ecaadca24a
@@ -1,25 +1,23 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, glibcLocales
, urwid
, fetchpatch
, setuptools
, urwid
}:
buildPythonPackage rec {
pname = "urwidtrees";
format = "setuptools";
version = "1.0.3";
pyproject = true;
src = fetchFromGitHub {
owner = "pazz";
repo = "urwidtrees";
rev = version;
rev = "refs/tags/${version}";
hash = "sha256-yGSjwagCd5TiwEFtF6ZhDuVqj4PTa5pVXhs8ebr2O/g=";
};
propagatedBuildInputs = [ urwid ];
patches = [
(fetchpatch {
url = "https://github.com/pazz/urwidtrees/commit/ed39dbc4fc67b0e0249bf108116a88cd18543aa9.patch";
@@ -27,13 +25,26 @@ buildPythonPackage rec {
})
];
nativeCheckInputs = [ glibcLocales ];
LC_ALL="en_US.UTF-8";
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
urwid
];
# Module has no tests
doCheck = false;
pythonImportsCheck = [
"urwidtrees"
];
meta = with lib; {
description = "Tree widgets for urwid";
homepage = "https://github.com/pazz/urwidtrees";
license = licenses.gpl3;
changelog = "https://github.com/pazz/urwidtrees/releases/tag/${version}";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ ];
};
}