depot/third_party/nixpkgs/pkgs/development/python-modules/urwidtrees/default.nix
Default email c7cb07f092 Project import generated by Copybara.
GitOrigin-RevId: 1536926ef5621b09bba54035ae2bb6d806d72ac8
2024-02-29 21:09:43 +01:00

50 lines
1 KiB
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; [ ];
};
}