Unverified Commit 75110f8b authored by novenary's avatar novenary Committed by GitHub
Browse files

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: default avataraleksana <me@aleksana.moe>
parent b414b4f3
Loading
Loading
Loading
Loading
+7 −9
Original line number Diff line number Diff line
{ 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/";