python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / tools / misc / thefuck / default.nix
blob13f741c5444f2bbf8ee0ee4ada3de098e679fbe0
1 { lib, stdenv, fetchFromGitHub, buildPythonApplication
2 , colorama, decorator, psutil, pyte, six
3 , go, mock, pytestCheckHook, pytest-mock
4 }:
6 buildPythonApplication rec {
7   pname = "thefuck";
8   version = "3.32";
10   src = fetchFromGitHub {
11     owner = "nvbn";
12     repo = pname;
13     rev = version;
14     sha256 = "sha256-bRCy95owBJaxoyCNQF6gEENoxCkmorhyKzZgU1dQN6I=";
15   };
17   propagatedBuildInputs = [ colorama decorator psutil pyte six ];
19   checkInputs = [ go mock pytestCheckHook pytest-mock ];
21   disabledTests = lib.optionals stdenv.isDarwin [
22     "test_settings_defaults"
23     "test_from_file"
24     "test_from_env"
25     "test_settings_from_args"
26     "test_get_all_executables_exclude_paths"
27     "test_with_blank_cache"
28     "test_with_filled_cache"
29     "test_when_etag_changed"
30     "test_for_generic_shell"
31     "test_on_first_run"
32     "test_on_run_after_other_commands"
33     "test_when_cant_configure_automatically"
34     "test_when_already_configured"
35     "test_when_successfully_configured"
36   ];
38   meta = with lib; {
39     homepage = "https://github.com/nvbn/thefuck";
40     description = "Magnificent app which corrects your previous console command";
41     license = licenses.mit;
42     maintainers = with maintainers; [ SuperSandro2000 ];
43   };