mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-19 04:03:56 +00:00
48 lines
1.3 KiB
Nix
48 lines
1.3 KiB
Nix
{ lib
|
|
, python3
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
pname = "tuifi-manager";
|
|
version = "3.0.0";
|
|
format = "pyproject";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "GiorgosXou";
|
|
repo = "TUIFIManager";
|
|
rev = "v.${version}";
|
|
hash = "sha256-ahZUm+FkAaM4I6FfSa/Oej+lMux8avw8LxzzGqTpuH8=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace pyproject.toml \
|
|
--replace "Send2Trash == 1.8.0" "Send2Trash >= 1.8.0"
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
python3.pkgs.setuptools
|
|
python3.pkgs.setuptools-scm
|
|
];
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
send2trash
|
|
unicurses
|
|
];
|
|
pythonImportsCheck = [ "TUIFIManager" ];
|
|
|
|
meta = with lib; {
|
|
description = "A cross-platform terminal-based termux-oriented file manager";
|
|
longDescription = ''
|
|
A cross-platform terminal-based termux-oriented file manager (and component),
|
|
meant to be used with a Uni-Curses project or as is. This project is mainly an
|
|
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";
|
|
};
|
|
}
|