sshfs-fuse: use checkInputs, fix tests

This commit is contained in:
Jan Malakhovski 2018-08-08 21:34:52 +00:00
parent 311304155f
commit 15e96bd4d2

View File

@ -1,5 +1,5 @@
{ stdenv, fetchFromGitHub, meson, pkgconfig, ninja, glib, fuse3
, docutils
, docutils, which, python3Packages
}:
stdenv.mkDerivation rec {
@ -25,6 +25,12 @@ stdenv.mkDerivation rec {
ln -sf $out/bin/sshfs $out/sbin/mount.sshfs
'';
checkInputs = [ which ] ++ (with python3Packages; [ python pytest ]);
checkPhase = ''
python3 -m pytest test/
'';
meta = with stdenv.lib; {
inherit (src.meta) homepage;
description = "FUSE-based filesystem that allows remote filesystems to be mounted over SSH";