2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, isPy3k
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, future
|
|
|
|
, mock
|
|
|
|
, nose
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "annexremote";
|
2021-10-17 02:12:59 +00:00
|
|
|
version = "1.6.0";
|
2020-04-24 23:36:52 +00: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";
|
2021-10-17 02:12:59 +00:00
|
|
|
sha256 = "08myswj1vqkl4s1glykq6xn76a070nv5mxj0z8ibl6axz89bvypi";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ future ];
|
|
|
|
|
|
|
|
checkInputs = [ nose ] ++ lib.optional (!isPy3k) mock;
|
|
|
|
checkPhase = "nosetests -v";
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Helper module to easily develop git-annex remotes";
|
|
|
|
homepage = "https://github.com/Lykos153/AnnexRemote";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ montag451 ];
|
|
|
|
};
|
|
|
|
}
|