1{ stdenv, fetchFromGitHub, python, buildPythonPackage, pythonPackages }:
2
3buildPythonPackage rec {
4 name = "gitfs-0.2.5";
5
6 src = fetchFromGitHub {
7 owner = "PressLabs";
8 repo = "gitfs";
9 rev = "495c6c52ec3573294ba7b8426ed794eb466cbb82";
10 sha256 = "04yh6b5ivbviqy5k2768ag75cd5kr8k70ar0d801yvc8hnijvphk";
11 };
12
13 patchPhase = ''
14 # requirement checks are unnecessary at runtime
15 echo > requirements.txt
16 '';
17
18 propagatedBuildInputs = with pythonPackages; [ atomiclong fusepy pygit2 ];
19
20 meta = {
21 description = "A FUSE filesystem that fully integrates with git";
22 longDescription = ''
23 A git remote repository's branch can be mounted locally,
24 and any subsequent changes made to the files will be
25 automatically committed to the remote.
26 '';
27 homepage = https://github.com/PressLabs/gitfs;
28 license = stdenv.lib.licenses.asl20;
29 platforms = stdenv.lib.platforms.linux;
30 maintainers = [ stdenv.lib.maintainers.robbinch ];
31 };
32}