Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 34 lines 819 B view raw
1{ lib 2, isPy3k 3, buildPythonPackage 4, fetchFromGitHub 5, future 6, mock 7, nose 8}: 9 10buildPythonPackage rec { 11 pname = "annexremote"; 12 version = "1.4.5"; 13 14 # use fetchFromGitHub instead of fetchPypi because the test suite of 15 # the package is not included into the PyPI tarball 16 src = fetchFromGitHub { 17 rev = "v${version}"; 18 owner = "Lykos153"; 19 repo = "AnnexRemote"; 20 sha256 = "0r5chdk2aiqcz7z8r8m1j657cz79f6bbv96xdmhj4m5fiqn672if"; 21 }; 22 23 propagatedBuildInputs = [ future ]; 24 25 checkInputs = [ nose ] ++ lib.optional (!isPy3k) mock; 26 checkPhase = "nosetests -v"; 27 28 meta = with lib; { 29 description = "Helper module to easily develop git-annex remotes"; 30 homepage = "https://github.com/Lykos153/AnnexRemote"; 31 license = licenses.gpl3; 32 maintainers = with maintainers; [ montag451 ]; 33 }; 34}