2021-01-25 00:26:54 -08:00
|
|
|
{ lib
|
2018-10-28 10:04:08 -07:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2019-12-20 08:29:55 -08:00
|
|
|
, glibcLocales
|
2018-10-28 10:04:08 -07:00
|
|
|
, urwid
|
2020-11-08 07:45:47 -08:00
|
|
|
, fetchpatch
|
2018-10-28 10:04:08 -07:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2018-11-04 15:32:52 -08:00
|
|
|
pname = "urwidtrees";
|
2020-11-08 07:45:47 -08:00
|
|
|
version = "1.0.3";
|
2018-10-28 10:04:08 -07:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pazz";
|
|
|
|
repo = "urwidtrees";
|
2019-09-08 16:38:31 -07:00
|
|
|
rev = version;
|
2020-11-08 07:45:47 -08:00
|
|
|
sha256 = "sha256-yGSjwagCd5TiwEFtF6ZhDuVqj4PTa5pVXhs8ebr2O/g=";
|
2018-10-28 10:04:08 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ urwid ];
|
|
|
|
|
2020-11-08 07:45:47 -08:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/pazz/urwidtrees/commit/ed39dbc4fc67b0e0249bf108116a88cd18543aa9.patch";
|
|
|
|
sha256 = "sha256-fA+30d2uVaoNCg4rtoWLNPvrZtq41Co4vcmM80hkURs=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2019-12-20 08:29:55 -08:00
|
|
|
checkInputs = [ glibcLocales ];
|
|
|
|
LC_ALL="en_US.UTF-8";
|
|
|
|
|
2021-01-10 23:54:33 -08:00
|
|
|
meta = with lib; {
|
2018-10-28 10:04:08 -07:00
|
|
|
description = "Tree widgets for urwid";
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://github.com/pazz/urwidtrees";
|
2018-10-28 10:04:08 -07:00
|
|
|
license = licenses.gpl3;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|