about summary refs log tree commit diff
path: root/pkgs/tools/filesystems/gitfs
diff options
context:
space:
mode:
authorFrederik Rietdijk <fridh@fridh.nl>2016-10-17 16:10:56 +0200
committerFrederik Rietdijk <fridh@fridh.nl>2016-10-18 23:14:35 +0200
commitaf11ff4cddaa6b450d6d84d75f3d06c10c433f94 (patch)
tree67f44d2bc95381cf0afe12f2381f8766511783e0 /pkgs/tools/filesystems/gitfs
parentfc9e2b60b542f7cdc56454698c7d893ece6c992f (diff)
gitfs: use python2
Diffstat (limited to 'pkgs/tools/filesystems/gitfs')
-rw-r--r--pkgs/tools/filesystems/gitfs/default.nix13
1 files changed, 9 insertions, 4 deletions
diff --git a/pkgs/tools/filesystems/gitfs/default.nix b/pkgs/tools/filesystems/gitfs/default.nix
index 31c4ceccbc091..bb652c2858097 100644
--- a/pkgs/tools/filesystems/gitfs/default.nix
+++ b/pkgs/tools/filesystems/gitfs/default.nix
@@ -1,6 +1,6 @@
-{ stdenv, fetchFromGitHub, pythonPackages }:
+{ stdenv, fetchFromGitHub, python2Packages }:
 
-pythonPackages.buildPythonApplication rec {
+python2Packages.buildPythonApplication rec {
   name = "gitfs-0.2.5";
 
   src = fetchFromGitHub {
@@ -15,7 +15,12 @@ pythonPackages.buildPythonApplication rec {
     echo > requirements.txt
   '';
 
-  propagatedBuildInputs = with pythonPackages; [ atomiclong fusepy pygit2 ];
+  buildInputs = with python2Packages; [ pytest pytestcov mock ];
+  propagatedBuildInputs = with python2Packages; [ atomiclong fusepy pygit2 ];
+
+  checkPhase = ''
+    py.test
+  '';
 
   meta = {
     description = "A FUSE filesystem that fully integrates with git";
@@ -29,4 +34,4 @@ pythonPackages.buildPythonApplication rec {
     platforms = stdenv.lib.platforms.linux;
     maintainers = [ stdenv.lib.maintainers.robbinch ];
   };
-}
\ No newline at end of file
+}