aboutsummaryrefslogtreecommitdiff
path: root/pkgs/applications/misc/ranger
diff options
context:
space:
mode:
authorFrederik Rietdijk <fridh@fridh.nl>2017-02-10 09:40:57 +0100
committerFrederik Rietdijk <fridh@fridh.nl>2017-02-10 09:44:54 +0100
commitbfb31d28e746931f7a4dfaf42ccf8d7c957502ee (patch)
treece2b369f25c3fdf52232d5852ec2959f350b3d2a /pkgs/applications/misc/ranger
parent81d0494390307bb19998be7b15bfe5fc5b7778d6 (diff)
ranger: fix tests
Diffstat (limited to 'pkgs/applications/misc/ranger')
-rw-r--r--pkgs/applications/misc/ranger/default.nix5
1 files changed, 5 insertions, 0 deletions
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