Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09-beta 43 lines 995 B view raw
1{ stdenv, buildPythonPackage, isPy3k, fetchFromGitHub, substituteAll 2, python, utillinux, pygit2, gitMinimal, git-annex 3}: 4 5buildPythonPackage rec { 6 pname = "git-annex-adapter"; 7 version = "0.2.1"; 8 9 disabled = !isPy3k; 10 11 # No tests in PyPI tarball 12 src = fetchFromGitHub { 13 owner = "alpernebbi"; 14 repo = pname; 15 rev = "v${version}"; 16 sha256 = "146q1jhcfc7f96ajkhjffskkljk2xzivs5ih5clb8qx0sh7mj097"; 17 }; 18 19 patches = [ 20 (substituteAll { 21 src = ./git-annex-path.patch; 22 gitAnnex = "${git-annex}/bin/git-annex"; 23 }) 24 ]; 25 26 checkInputs = [ 27 gitMinimal 28 utillinux # `rev` is needed in tests/test_process.py 29 ]; 30 31 propagatedBuildInputs = [ pygit2 ]; 32 33 checkPhase = '' 34 ${python.interpreter} -m unittest 35 ''; 36 37 meta = with stdenv.lib; { 38 homepage = "https://github.com/alpernebbi/git-annex-adapter"; 39 description = "Call git-annex commands from Python"; 40 license = licenses.gpl3Plus; 41 maintainers = with maintainers; [ dotlambda ]; 42 }; 43}