1{ lib
2, isPy3k
3, buildPythonPackage
4, fetchFromGitHub
5, future
6, mock
7, nose
8}:
9
10buildPythonPackage rec {
11 pname = "annexremote";
12 version = "1.6.0";
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 = "08myswj1vqkl4s1glykq6xn76a070nv5mxj0z8ibl6axz89bvypi";
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}