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