depot/third_party/nixpkgs/pkgs/development/python-modules/urwidtrees/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

45 lines
1,016 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
fetchpatch,
setuptools,
urwid,
}:
buildPythonPackage rec {
pname = "urwidtrees";
version = "1.0.3";
pyproject = true;
src = fetchFromGitHub {
owner = "pazz";
repo = "urwidtrees";
rev = "refs/tags/${version}";
hash = "sha256-yGSjwagCd5TiwEFtF6ZhDuVqj4PTa5pVXhs8ebr2O/g=";
};
patches = [
(fetchpatch {
url = "https://github.com/pazz/urwidtrees/commit/ed39dbc4fc67b0e0249bf108116a88cd18543aa9.patch";
hash = "sha256-fA+30d2uVaoNCg4rtoWLNPvrZtq41Co4vcmM80hkURs=";
})
];
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";
changelog = "https://github.com/pazz/urwidtrees/releases/tag/${version}";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ ];
};
}