at 17.09-beta 37 lines 1.1 kB view raw
1{ stdenv, fetchFromGitHub, python2Packages }: 2 3python2Packages.buildPythonApplication rec { 4 name = "gitfs-${version}"; 5 version = "0.4.5.1"; 6 7 src = fetchFromGitHub { 8 owner = "PressLabs"; 9 repo = "gitfs"; 10 rev = version; 11 sha256 = "1s9ml2ryqxvzzq9mxa9y3xmzr742qxcpw9kzzbr7vm3bxgkyi074"; 12 }; 13 14 patchPhase = '' 15 # requirement checks are unnecessary at runtime 16 echo > requirements.txt 17 ''; 18 19 buildInputs = with python2Packages; [ pytest pytestcov mock ]; 20 propagatedBuildInputs = with python2Packages; [ atomiclong fusepy pygit2 ]; 21 22 checkPhase = "py.test"; 23 doCheck = false; 24 25 meta = { 26 description = "A FUSE filesystem that fully integrates with git"; 27 longDescription = '' 28 A git remote repository's branch can be mounted locally, 29 and any subsequent changes made to the files will be 30 automatically committed to the remote. 31 ''; 32 homepage = https://github.com/PressLabs/gitfs; 33 license = stdenv.lib.licenses.asl20; 34 platforms = stdenv.lib.platforms.linux; 35 maintainers = [ stdenv.lib.maintainers.robbinch ]; 36 }; 37}