depot/third_party/nixpkgs/pkgs/development/python-modules/urwidtrees/default.nix
Default email cc49d46d4f Project import generated by Copybara.
GitOrigin-RevId: 2deeb58f49480f468adca6b08291322de4dbce6b
2020-11-12 23:50:31 +00:00

38 lines
800 B
Nix

{ stdenv
, buildPythonPackage
, fetchFromGitHub
, glibcLocales
, urwid
, fetchpatch
}:
buildPythonPackage rec {
pname = "urwidtrees";
version = "1.0.3";
src = fetchFromGitHub {
owner = "pazz";
repo = "urwidtrees";
rev = version;
sha256 = "sha256-yGSjwagCd5TiwEFtF6ZhDuVqj4PTa5pVXhs8ebr2O/g=";
};
propagatedBuildInputs = [ urwid ];
patches = [
(fetchpatch {
url = "https://github.com/pazz/urwidtrees/commit/ed39dbc4fc67b0e0249bf108116a88cd18543aa9.patch";
sha256 = "sha256-fA+30d2uVaoNCg4rtoWLNPvrZtq41Co4vcmM80hkURs=";
})
];
checkInputs = [ glibcLocales ];
LC_ALL="en_US.UTF-8";
meta = with stdenv.lib; {
description = "Tree widgets for urwid";
homepage = "https://github.com/pazz/urwidtrees";
license = licenses.gpl3;
};
}