2019-04-14 14:17:41 +01:00
|
|
|
{ lib
|
|
|
|
, isPy3k
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, future
|
|
|
|
, mock
|
|
|
|
, nose
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "annexremote";
|
2020-11-29 14:04:22 +00:00
|
|
|
version = "1.4.5";
|
2019-04-14 14:17:41 +01:00
|
|
|
|
|
|
|
# use fetchFromGitHub instead of fetchPypi because the test suite of
|
|
|
|
# the package is not included into the PyPI tarball
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
rev = "v${version}";
|
|
|
|
owner = "Lykos153";
|
|
|
|
repo = "AnnexRemote";
|
2020-11-29 14:04:22 +00:00
|
|
|
sha256 = "0r5chdk2aiqcz7z8r8m1j657cz79f6bbv96xdmhj4m5fiqn672if";
|
2019-04-14 14:17:41 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ future ];
|
|
|
|
|
|
|
|
checkInputs = [ nose ] ++ lib.optional (!isPy3k) mock;
|
|
|
|
checkPhase = "nosetests -v";
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Helper module to easily develop git-annex remotes";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/Lykos153/AnnexRemote";
|
2019-04-14 14:17:41 +01:00
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ montag451 ];
|
|
|
|
};
|
|
|
|
}
|