1{ lib
2, isPy3k
3, buildPythonPackage
4, fetchFromGitHub
5, pytestCheckHook
6, nose
7, pythonOlder
8}:
9
10buildPythonPackage rec {
11 pname = "annexremote";
12 version = "1.6.0";
13 format = "setuptools";
14
15 disabled = pythonOlder "3.7";
16
17 src = fetchFromGitHub {
18 owner = "Lykos153";
19 repo = "AnnexRemote";
20 rev = "v${version}";
21 sha256 = "08myswj1vqkl4s1glykq6xn76a070nv5mxj0z8ibl6axz89bvypi";
22 };
23
24 checkInputs = [
25 nose
26 ];
27
28 checkPhase = ''
29 nosetests -v -e "^TestExport_MissingName" -e "^TestRemoveexportdirectory"
30 '';
31
32 pythonImportsCheck = [
33 "annexremote"
34 ];
35
36 meta = with lib; {
37 description = "Helper module to easily develop git-annex remotes";
38 homepage = "https://github.com/Lykos153/AnnexRemote";
39 license = licenses.gpl3Only;
40 maintainers = with maintainers; [ montag451 ];
41 };
42}