2021-12-06 16:07:01 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, buildPythonApplication
|
2020-04-24 23:36:52 +00:00
|
|
|
, colorama, decorator, psutil, pyte, six
|
2021-02-13 14:23:35 +00:00
|
|
|
, go, mock, pytestCheckHook, pytest-mock
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "thefuck";
|
2022-01-07 04:07:37 +00:00
|
|
|
version = "3.32";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nvbn";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-01-07 04:07:37 +00:00
|
|
|
sha256 = "sha256-bRCy95owBJaxoyCNQF6gEENoxCkmorhyKzZgU1dQN6I=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ colorama decorator psutil pyte six ];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ go mock pytestCheckHook pytest-mock ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
disabledTests = lib.optionals stdenv.isDarwin [
|
2021-12-06 16:07:01 +00:00
|
|
|
"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"
|
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/nvbn/thefuck";
|
2020-10-19 00:13:06 +00:00
|
|
|
description = "Magnificent app which corrects your previous console command";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mit;
|
2023-08-04 22:07:22 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|