2019-04-14 13:17:41 +00:00
|
|
|
{ lib
|
|
|
|
, isPy3k
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2022-01-11 10:04:22 +00:00
|
|
|
, pytestCheckHook
|
2019-04-14 13:17:41 +00:00
|
|
|
, nose
|
2022-01-11 10:04:22 +00:00
|
|
|
, pythonOlder
|
2019-04-14 13:17:41 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "annexremote";
|
2021-10-12 01:13:28 +00:00
|
|
|
version = "1.6.0";
|
2022-01-11 10:04:22 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2019-04-14 13:17:41 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Lykos153";
|
|
|
|
repo = "AnnexRemote";
|
2022-01-11 10:04:22 +00:00
|
|
|
rev = "v${version}";
|
2021-10-12 01:13:28 +00:00
|
|
|
sha256 = "08myswj1vqkl4s1glykq6xn76a070nv5mxj0z8ibl6axz89bvypi";
|
2019-04-14 13:17:41 +00:00
|
|
|
};
|
|
|
|
|
2022-01-11 10:04:22 +00:00
|
|
|
checkInputs = [
|
|
|
|
nose
|
|
|
|
];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
nosetests -v -e "^TestExport_MissingName" -e "^TestRemoveexportdirectory"
|
|
|
|
'';
|
2019-04-14 13:17:41 +00:00
|
|
|
|
2022-01-11 10:04:22 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"annexremote"
|
|
|
|
];
|
2019-04-14 13:17:41 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Helper module to easily develop git-annex remotes";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/Lykos153/AnnexRemote";
|
2022-01-11 10:04:22 +00:00
|
|
|
license = licenses.gpl3Only;
|
2019-04-14 13:17:41 +00:00
|
|
|
maintainers = with maintainers; [ montag451 ];
|
|
|
|
};
|
|
|
|
}
|