evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / by-name / th / thefuck / package.nix
blobe0cd1b7b5d0cb50a13fc8fef0401c75c4c9731e4
2   lib,
3   stdenv,
4   fetchFromGitHub,
5   python311Packages,
6   go,
7 }:
9 python311Packages.buildPythonApplication rec {
10   pname = "thefuck";
11   version = "3.32";
13   src = fetchFromGitHub {
14     owner = "nvbn";
15     repo = "thefuck";
16     rev = "refs/tags/${version}";
17     hash = "sha256-bRCy95owBJaxoyCNQF6gEENoxCkmorhyKzZgU1dQN6I=";
18   };
20   dependencies = with python311Packages; [
21     colorama
22     decorator
23     psutil
24     pyte
25     six
26   ];
28   nativeCheckInputs =
29     [ go ]
30     ++ (with python311Packages; [
31       mock
32       pytest7CheckHook
33       pytest-mock
34     ]);
36   disabledTests = lib.optionals stdenv.hostPlatform.isDarwin [
37     "test_settings_defaults"
38     "test_from_file"
39     "test_from_env"
40     "test_settings_from_args"
41     "test_get_all_executables_exclude_paths"
42     "test_with_blank_cache"
43     "test_with_filled_cache"
44     "test_when_etag_changed"
45     "test_for_generic_shell"
46     "test_on_first_run"
47     "test_on_run_after_other_commands"
48     "test_when_cant_configure_automatically"
49     "test_when_already_configured"
50     "test_when_successfully_configured"
51   ];
53   meta = {
54     homepage = "https://github.com/nvbn/thefuck";
55     description = "Magnificent app which corrects your previous console command";
56     license = lib.licenses.mit;
57     maintainers = with lib.maintainers; [ marcusramberg ];
58   };