summary refs log tree commit diff
path: root/pkgs/development/python-modules/annexremote/default.nix
blob: 46e937eb8dae5d33bf6c8c53ce7a8125dea90483 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
{ lib
, isPy3k
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, nose
, pythonOlder
}:

buildPythonPackage rec {
  pname = "annexremote";
  version = "1.6.0";
  format = "setuptools";

  disabled = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "Lykos153";
    repo = "AnnexRemote";
    rev = "v${version}";
    sha256 = "sha256-h03gkRAMmOq35zzAq/OuctJwPAbP0Idu4Lmeu0RycDc=";
  };

  nativeCheckInputs = [
    nose
  ];

  checkPhase = ''
    nosetests -v -e "^TestExport_MissingName" -e "^TestRemoveexportdirectory"
  '';

  pythonImportsCheck = [
    "annexremote"
  ];

  meta = with lib; {
    description = "Helper module to easily develop git-annex remotes";
    homepage = "https://github.com/Lykos153/AnnexRemote";
    license = licenses.gpl3Only;
    maintainers = with maintainers; [ montag451 ];
  };
}