diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/urwidtrees/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/urwidtrees/default.nix | 31 |
1 files changed, 21 insertions, 10 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/urwidtrees/default.nix b/nixpkgs/pkgs/development/python-modules/urwidtrees/default.nix index 82744984d007..f12f91906efa 100644 --- a/nixpkgs/pkgs/development/python-modules/urwidtrees/default.nix +++ b/nixpkgs/pkgs/development/python-modules/urwidtrees/default.nix @@ -1,25 +1,23 @@ { lib , buildPythonPackage , fetchFromGitHub -, glibcLocales -, urwid , fetchpatch +, setuptools +, urwid }: buildPythonPackage rec { pname = "urwidtrees"; - format = "setuptools"; version = "1.0.3"; + pyproject = true; src = fetchFromGitHub { owner = "pazz"; repo = "urwidtrees"; - rev = version; + rev = "refs/tags/${version}"; hash = "sha256-yGSjwagCd5TiwEFtF6ZhDuVqj4PTa5pVXhs8ebr2O/g="; }; - propagatedBuildInputs = [ urwid ]; - patches = [ (fetchpatch { url = "https://github.com/pazz/urwidtrees/commit/ed39dbc4fc67b0e0249bf108116a88cd18543aa9.patch"; @@ -27,13 +25,26 @@ buildPythonPackage rec { }) ]; - nativeCheckInputs = [ glibcLocales ]; - LC_ALL="en_US.UTF-8"; + 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"; - license = licenses.gpl3; + changelog = "https://github.com/pazz/urwidtrees/releases/tag/${version}"; + license = licenses.gpl3Plus; + maintainers = with maintainers; [ ]; }; - } |