Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

Merge pull request #208023 from michaelBelsanti/tuifimanager

authored by Sandro and committed by GitHub bca7aaf8 3c5a6e58

+73
+38
pkgs/applications/file-managers/tuifimanager/default.nix
··· 1 + { lib, python3Packages, fetchFromGitHub }: 2 + 3 + python3Packages.buildPythonApplication rec { 4 + pname = "tuifimanager"; 5 + version = "2.3.4"; 6 + format = "setuptools"; 7 + 8 + src = fetchFromGitHub { 9 + repo = pname; 10 + owner = "GiorgosXou"; 11 + rev = "v.${version}"; 12 + hash = "sha256-KJYPpeBALyg6Gd1GQgJbvGdJbAT47qO9FnSH7GhO4oQ="; 13 + }; 14 + 15 + postPatch = '' 16 + substituteInPlace pyproject.toml \ 17 + --replace "Send2Trash == 1.8.0" "Send2Trash >= 1.8.0" 18 + ''; 19 + 20 + propagatedBuildInputs = with python3Packages; [ unicurses send2trash ]; 21 + pythonImportsCheck = [ "TUIFIManager" ]; 22 + 23 + # Tests currently cause build to fail 24 + doCheck = false; 25 + 26 + meta = with lib; { 27 + description = "A cross-platform terminal-based termux-oriented file manager"; 28 + longDescription = '' 29 + A cross-platform terminal-based termux-oriented file manager (and component), 30 + meant to be used with a Uni-Curses project or as is. This project is mainly an 31 + attempt to get more attention to the Uni-Curses project. 32 + ''; 33 + homepage = "https://github.com/GiorgosXou/TUIFIManager"; 34 + license = licenses.gpl3Only; 35 + maintainers = with maintainers; [ michaelBelsanti ]; 36 + mainProgram = "tuifi"; 37 + }; 38 + }
+31
pkgs/development/python-modules/unicurses/default.nix
··· 1 + { lib, buildPythonPackage, fetchPypi, ncurses, x256 }: 2 + 3 + buildPythonPackage rec { 4 + pname = "unicurses"; 5 + version = "2.1.3"; 6 + format = "setuptools"; 7 + 8 + src = fetchPypi { 9 + inherit version; 10 + pname = "Uni-Curses"; 11 + hash = "sha256-uzSiF0jAZzI0iZngM/GuJ60o+UbLQ5XQzycTPito34w="; 12 + }; 13 + 14 + propagatedBuildInputs = [ x256 ]; 15 + 16 + # Necessary because ctypes.util.find_library does not find the ncurses libraries 17 + postPatch = '' 18 + substituteInPlace './unicurses/__init__.py' \ 19 + --replace "find_library('ncursesw')" '"${ncurses}/lib/libncursesw.so.6"' \ 20 + --replace "find_library('panelw')" '"${ncurses}/lib/libpanelw.so.6"' 21 + ''; 22 + 23 + pythonImportsCheck = [ "unicurses" ]; 24 + 25 + meta = with lib; { 26 + description = "Unified Curses Wrapper for Python"; 27 + homepage = "https://github.com/unicurses/unicurses"; 28 + license = licenses.gpl3Only; 29 + maintainers = with maintainers; [ michaelBelsanti ]; 30 + }; 31 + }
+2
pkgs/top-level/all-packages.nix
··· 2493 2493 2494 2494 spaceFM = callPackage ../applications/file-managers/spacefm { }; 2495 2495 2496 + tuifimanager = callPackage ../applications/file-managers/tuifimanager { }; 2497 + 2496 2498 vifm = callPackage ../applications/file-managers/vifm { }; 2497 2499 2498 2500 vifm-full = vifm.override {
+2
pkgs/top-level/python-packages.nix
··· 12236 12236 unicorn-emu = pkgs.unicorn; 12237 12237 }; 12238 12238 12239 + unicurses = callPackage ../development/python-modules/unicurses { }; 12240 + 12239 12241 unicrypto = callPackage ../development/python-modules/unicrypto { }; 12240 12242 12241 12243 unidecode = callPackage ../development/python-modules/unidecode { };