From bfb31d28e746931f7a4dfaf42ccf8d7c957502ee Mon Sep 17 00:00:00 2001 From: Frederik Rietdijk Date: Fri, 10 Feb 2017 09:40:57 +0100 Subject: [PATCH] ranger: fix tests --- pkgs/applications/misc/ranger/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/applications/misc/ranger/default.nix b/pkgs/applications/misc/ranger/default.nix index 673e4b02085..9b7aeddc2ff 100644 --- a/pkgs/applications/misc/ranger/default.nix +++ b/pkgs/applications/misc/ranger/default.nix @@ -15,8 +15,13 @@ pythonPackages.buildPythonApplication rec { sha256 = "14j067n1azk6vc6cxlhi5w5bsn2wcz4hypvgxc0vjl9xp5n4f0nf"; }; + checkInputs = with pythonPackages; [ pytest ]; propagatedBuildInputs = [ file ]; + checkPhase = '' + py.test tests + ''; + preConfigure = '' substituteInPlace ranger/ext/img_display.py \ --replace /usr/lib/w3m ${w3m}/libexec/w3m