summary refs log tree commit diff
diff options
context:
space:
mode:
authorFabian Affolter <fabian@affolter-engineering.ch>2022-01-11 16:01:40 +0100
committerGitHub <noreply@github.com>2022-01-11 16:01:40 +0100
commit2c9bffff32922129cc8001d6b6c89858aff7bd13 (patch)
treeac03548854b7f0efdb530a02d1d6c954efca8ff8
parentc91d81b9d817cf6fcc8bd496d0e54bb334b5d761 (diff)
parent70595c9e1e528852906c8509752d3c97bc7a4971 (diff)
downloadnixpkgs-2c9bffff32922129cc8001d6b6c89858aff7bd13.tar
nixpkgs-2c9bffff32922129cc8001d6b6c89858aff7bd13.tar.gz
nixpkgs-2c9bffff32922129cc8001d6b6c89858aff7bd13.tar.bz2
nixpkgs-2c9bffff32922129cc8001d6b6c89858aff7bd13.tar.lz
nixpkgs-2c9bffff32922129cc8001d6b6c89858aff7bd13.tar.xz
nixpkgs-2c9bffff32922129cc8001d6b6c89858aff7bd13.tar.zst
nixpkgs-2c9bffff32922129cc8001d6b6c89858aff7bd13.zip
Merge pull request #154333 from fabaff/fix-versionfinder
python3Packages.versionfinder: disable failing tests
-rw-r--r--pkgs/development/python-modules/versionfinder/default.nix24
1 files changed, 21 insertions, 3 deletions
diff --git a/pkgs/development/python-modules/versionfinder/default.nix b/pkgs/development/python-modules/versionfinder/default.nix
index 69d77551fcd..951ae8d9874 100644
--- a/pkgs/development/python-modules/versionfinder/default.nix
+++ b/pkgs/development/python-modules/versionfinder/default.nix
@@ -1,8 +1,19 @@
-{ lib, buildPythonPackage, fetchFromGitHub, GitPython, pytestCheckHook, backoff, requests }:
+{ lib
+, backoff
+, buildPythonPackage
+, fetchFromGitHub
+, GitPython
+, pytestCheckHook
+, pythonOlder
+, requests
+}:
 
 buildPythonPackage rec {
   pname = "versionfinder";
   version = "1.1.1";
+  format = "setuptools";
+
+  disabled = pythonOlder "3.7";
 
   src = fetchFromGitHub {
     owner = "jantman";
@@ -22,11 +33,18 @@ buildPythonPackage rec {
   ];
 
   disabledTestPaths = [
-    # acceptance tests use the network
+    # Acceptance tests use the network
     "versionfinder/tests/test_acceptance.py"
   ];
 
-  pythonImportsCheck = [ "versionfinder" ];
+  disabledTests = [
+    # Tests are out-dated
+    "TestFindPipInfo"
+  ];
+
+  pythonImportsCheck = [
+    "versionfinder"
+  ];
 
   meta = with lib; {
     description = "Find the version of another package, whether installed via pip, setuptools or git";