summary refs log tree commit diff
path: root/pkgs/tools/misc/thefuck
diff options
context:
space:
mode:
authorMalo Bourgon <mbourgon@gmail.com>2021-11-04 12:59:32 -0700
committerMalo Bourgon <mbourgon@gmail.com>2021-11-04 12:59:32 -0700
commit1549123435034220872ddf8e11edbad56b5cd9b3 (patch)
tree9c9d70b00636460e537b8bbf804d430b96da8d96 /pkgs/tools/misc/thefuck
parentc24d587fcbbe584d9e6869101ae729717fe4c95d (diff)
downloadnixpkgs-1549123435034220872ddf8e11edbad56b5cd9b3.tar
nixpkgs-1549123435034220872ddf8e11edbad56b5cd9b3.tar.gz
nixpkgs-1549123435034220872ddf8e11edbad56b5cd9b3.tar.bz2
nixpkgs-1549123435034220872ddf8e11edbad56b5cd9b3.tar.lz
nixpkgs-1549123435034220872ddf8e11edbad56b5cd9b3.tar.xz
nixpkgs-1549123435034220872ddf8e11edbad56b5cd9b3.tar.zst
nixpkgs-1549123435034220872ddf8e11edbad56b5cd9b3.zip
thefuck: fix build on darwin
Diffstat (limited to 'pkgs/tools/misc/thefuck')
-rw-r--r--pkgs/tools/misc/thefuck/default.nix19
1 files changed, 18 insertions, 1 deletions
diff --git a/pkgs/tools/misc/thefuck/default.nix b/pkgs/tools/misc/thefuck/default.nix
index 13509af98c0..a3aa31d4ded 100644
--- a/pkgs/tools/misc/thefuck/default.nix
+++ b/pkgs/tools/misc/thefuck/default.nix
@@ -1,4 +1,4 @@
-{ lib, fetchFromGitHub, buildPythonApplication
+{ lib, stdenv, fetchFromGitHub, buildPythonApplication
 , colorama, decorator, psutil, pyte, six
 , go, mock, pytestCheckHook, pytest-mock
 }:
@@ -18,6 +18,23 @@ buildPythonApplication rec {
 
   checkInputs = [ go mock pytestCheckHook pytest-mock ];
 
+  disabledTests = lib.optional stdenv.isDarwin [
+    "test_settings_defaults"
+    "test_from_file"
+    "test_from_env"
+    "test_settings_from_args"
+    "test_get_all_executables_exclude_paths"
+    "test_with_blank_cache"
+    "test_with_filled_cache"
+    "test_when_etag_changed"
+    "test_for_generic_shell"
+    "test_on_first_run"
+    "test_on_run_after_other_commands"
+    "test_when_cant_configure_automatically"
+    "test_when_already_configured"
+    "test_when_successfully_configured"
+  ];
+
   meta = with lib; {
     homepage = "https://github.com/nvbn/thefuck";
     description = "Magnificent app which corrects your previous console command";