@@ -2,33 +2,41 @@
22, isPy3k
33, buildPythonPackage
44, fetchFromGitHub
5−, future
6−, mock
5+, pytestCheckHook
76, nose
7+, pythonOlder
88}:
99
1010buildPythonPackage rec {
1111 pname = "annexremote";
1212 version = "1.6.0";
13+ format = "setuptools";
14+
15+ disabled = pythonOlder "3.7";
1316
14− # use fetchFromGitHub instead of fetchPypi because the test suite of
15− # the package is not included into the PyPI tarball
1617 src = fetchFromGitHub {
17− rev = "v${version}";
1818 owner = "Lykos153";
1919 repo = "AnnexRemote";
20+ rev = "v${version}";
2021 sha256 = "08myswj1vqkl4s1glykq6xn76a070nv5mxj0z8ibl6axz89bvypi";
2122 };
2223
23− propagatedBuildInputs = [ future ];
24+ checkInputs = [
25+ nose
26+ ];
27+
28+ checkPhase = ''
29+ nosetests -v -e "^TestExport_MissingName" -e "^TestRemoveexportdirectory"
30+ '';
2431
25− checkInputs = [ nose ] ++ lib.optional (!isPy3k) mock;
26− checkPhase = "nosetests -v";
32+ pythonImportsCheck = [
33+ "annexremote"
34+ ];
2735
2836 meta = with lib; {
2937 description = "Helper module to easily develop git-annex remotes";
3038 homepage = "https://github.com/Lykos153/AnnexRemote";
31− license = licenses.gpl3;
39+ license = licenses.gpl3Only;
3240 maintainers = with maintainers; [ montag451 ];
3341 };
3442}