From 75110f8b6d86fddb37766b4a30901bd08471e020 Mon Sep 17 00:00:00 2001 From: novenary <1155030+9ary@users.noreply.github.com> Date: Tue, 23 Apr 2024 17:53:04 +0300 Subject: ranger: 1.9.3 -> 1.9.3-unstable-2023-08-23 (#280143) * ranger: 1.9.3 -> unstable-2023-08-23 * ranger: follow convention for unstable versions If a package is a commit from a repository without a version assigned, then the version attribute should be the latest upstream version preceding that commit, followed by -unstable- and the date of the (fetched) commit. The date must be in "YYYY-MM-DD" format. * ranger: remove version test * ranger: remove update note --------- Co-authored-by: aleksana --- pkgs/applications/file-managers/ranger/default.nix | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to 'pkgs/applications/file-managers/ranger/default.nix') diff --git a/pkgs/applications/file-managers/ranger/default.nix b/pkgs/applications/file-managers/ranger/default.nix index 4906a06123c80..ee2df2a60f693 100644 --- a/pkgs/applications/file-managers/ranger/default.nix +++ b/pkgs/applications/file-managers/ranger/default.nix @@ -1,5 +1,6 @@ -{ lib, fetchFromGitHub, python3Packages, file, less, highlight, w3m, ranger, testers +{ lib, fetchFromGitHub, python3Packages, file, less, highlight, w3m, ranger, imagemagick, testers , imagePreviewSupport ? true +, sixelPreviewSupport ? true , neoVimSupport ? true , improvedEncodingDetection ? true , rightToLeftTextSupport ? false @@ -7,22 +8,23 @@ python3Packages.buildPythonApplication rec { pname = "ranger"; - version = "1.9.3"; + version = "1.9.3-unstable-2023-08-23"; src = fetchFromGitHub { owner = "ranger"; repo = "ranger"; - rev = "v${version}"; - sha256= "1rygfryczanvqxn43lmlkgs04sbqznbvbb9hlbm3h5qgdcl0xlw8"; + rev = "38bb8901004b75a407ffee4b9e176bc0a436cb15"; + hash = "sha256-NpsrABk95xHNvhlRjKFh326IW83mYj1cmK3aE9JQSRo="; }; LC_ALL = "en_US.UTF-8"; - nativeCheckInputs = with python3Packages; [ pytestCheckHook ]; + nativeCheckInputs = with python3Packages; [ pytestCheckHook astroid pylint ]; propagatedBuildInputs = [ less file ] ++ lib.optionals imagePreviewSupport [ python3Packages.pillow ] + ++ lib.optionals sixelPreviewSupport [ imagemagick ] ++ lib.optionals neoVimSupport [ python3Packages.pynvim ] ++ lib.optionals improvedEncodingDetection [ python3Packages.chardet ] ++ lib.optionals rightToLeftTextSupport [ python3Packages.python-bidi ]; @@ -49,10 +51,6 @@ python3Packages.buildPythonApplication rec { --replace "set preview_images false" "set preview_images true" ''; - passthru.tests.version = testers.testVersion { - package = ranger; - }; - meta = with lib; { description = "File manager with minimalistic curses interface"; homepage = "https://ranger.github.io/"; -- cgit 1.4.1