Merge pull request #235635 from michaelBelsanti/tuifimanager

tuifimanager: 2.3.4 -> 3.0.0
This commit is contained in:
Sandro 2023-06-07 21:53:35 +02:00 committed by GitHub
commit f86e145471
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,15 +1,18 @@
{ lib, python3Packages, fetchFromGitHub }:
{ lib
, python3
, fetchFromGitHub
}:
python3Packages.buildPythonApplication rec {
pname = "tuifimanager";
version = "2.3.4";
format = "setuptools";
python3.pkgs.buildPythonApplication rec {
pname = "tuifi-manager";
version = "3.0.0";
format = "pyproject";
src = fetchFromGitHub {
repo = pname;
owner = "GiorgosXou";
repo = "TUIFIManager";
rev = "v.${version}";
hash = "sha256-KJYPpeBALyg6Gd1GQgJbvGdJbAT47qO9FnSH7GhO4oQ=";
hash = "sha256-ahZUm+FkAaM4I6FfSa/Oej+lMux8avw8LxzzGqTpuH8=";
};
postPatch = ''
@ -17,11 +20,16 @@ python3Packages.buildPythonApplication rec {
--replace "Send2Trash == 1.8.0" "Send2Trash >= 1.8.0"
'';
propagatedBuildInputs = with python3Packages; [ unicurses send2trash ];
pythonImportsCheck = [ "TUIFIManager" ];
nativeBuildInputs = [
python3.pkgs.setuptools
python3.pkgs.setuptools-scm
];
# Tests currently cause build to fail
doCheck = false;
propagatedBuildInputs = with python3.pkgs; [
send2trash
unicurses
];
pythonImportsCheck = [ "TUIFIManager" ];
meta = with lib; {
description = "A cross-platform terminal-based termux-oriented file manager";
@ -31,6 +39,7 @@ python3Packages.buildPythonApplication rec {
attempt to get more attention to the Uni-Curses project.
'';
homepage = "https://github.com/GiorgosXou/TUIFIManager";
changelog = "https://github.com/GiorgosXou/TUIFIManager/blob/${src.rev}/CHANGELOG.md";
license = licenses.gpl3Only;
maintainers = with maintainers; [ michaelBelsanti ];
mainProgram = "tuifi";