summary refs log tree commit diff
diff options
context:
space:
mode:
authorFabian Affolter <fabian@affolter-engineering.ch>2022-01-11 11:29:24 +0100
committerGitHub <noreply@github.com>2022-01-11 11:29:24 +0100
commit7180c7bb6e8259d3fbb5581ec8651c19e5921bdb (patch)
tree40b7792ec55802db19670c11224895661447922f
parente5205c71575bedd1ceaec47a8c0e6a6d65db5902 (diff)
parentbd9bf2ee927d947af2b054b93016d53f897cce25 (diff)
downloadnixpkgs-7180c7bb6e8259d3fbb5581ec8651c19e5921bdb.tar
nixpkgs-7180c7bb6e8259d3fbb5581ec8651c19e5921bdb.tar.gz
nixpkgs-7180c7bb6e8259d3fbb5581ec8651c19e5921bdb.tar.bz2
nixpkgs-7180c7bb6e8259d3fbb5581ec8651c19e5921bdb.tar.lz
nixpkgs-7180c7bb6e8259d3fbb5581ec8651c19e5921bdb.tar.xz
nixpkgs-7180c7bb6e8259d3fbb5581ec8651c19e5921bdb.tar.zst
nixpkgs-7180c7bb6e8259d3fbb5581ec8651c19e5921bdb.zip
Merge pull request #154495 from fabaff/fix-annexremote
python3Packages.annexremote: disable failing tests
-rw-r--r--pkgs/development/python-modules/annexremote/default.nix26
1 files changed, 17 insertions, 9 deletions
diff --git a/pkgs/development/python-modules/annexremote/default.nix b/pkgs/development/python-modules/annexremote/default.nix
index 9ea36507945..c9ed6bd90ed 100644
--- a/pkgs/development/python-modules/annexremote/default.nix
+++ b/pkgs/development/python-modules/annexremote/default.nix
@@ -2,33 +2,41 @@
 , isPy3k
 , buildPythonPackage
 , fetchFromGitHub
-, future
-, mock
+, pytestCheckHook
 , nose
+, pythonOlder
 }:
 
 buildPythonPackage rec {
   pname = "annexremote";
   version = "1.6.0";
+  format = "setuptools";
+
+  disabled = pythonOlder "3.7";
 
-  # 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";
+    rev = "v${version}";
     sha256 = "08myswj1vqkl4s1glykq6xn76a070nv5mxj0z8ibl6axz89bvypi";
   };
 
-  propagatedBuildInputs = [ future ];
+  checkInputs = [
+    nose
+  ];
+
+  checkPhase = ''
+    nosetests -v -e "^TestExport_MissingName" -e "^TestRemoveexportdirectory"
+  '';
 
-  checkInputs = [ nose ] ++ lib.optional (!isPy3k) mock;
-  checkPhase = "nosetests -v";
+  pythonImportsCheck = [
+    "annexremote"
+  ];
 
   meta = with lib; {
     description = "Helper module to easily develop git-annex remotes";
     homepage = "https://github.com/Lykos153/AnnexRemote";
-    license = licenses.gpl3;
+    license = licenses.gpl3Only;
     maintainers = with maintainers; [ montag451 ];
   };
 }