2024-07-09 15:08:04 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, python311Packages, go }:
|
2017-06-14 08:57:38 +00:00
|
|
|
|
2024-07-09 15:08:04 +00:00
|
|
|
python311Packages.buildPythonApplication rec {
|
2017-06-14 08:57:38 +00:00
|
|
|
pname = "thefuck";
|
2022-01-04 12:23:09 +00:00
|
|
|
version = "3.32";
|
2017-06-14 08:57:38 +00:00
|
|
|
|
2017-12-14 17:31:25 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nvbn";
|
2019-09-08 23:38:31 +00:00
|
|
|
repo = pname;
|
2017-12-14 17:31:25 +00:00
|
|
|
rev = version;
|
2022-01-04 12:23:09 +00:00
|
|
|
sha256 = "sha256-bRCy95owBJaxoyCNQF6gEENoxCkmorhyKzZgU1dQN6I=";
|
2017-06-14 08:57:38 +00:00
|
|
|
};
|
|
|
|
|
2024-07-09 15:08:04 +00:00
|
|
|
propagatedBuildInputs = with python311Packages; [ colorama decorator psutil pyte six ];
|
2017-12-14 17:31:25 +00:00
|
|
|
|
2024-07-09 15:08:04 +00:00
|
|
|
nativeCheckInputs = [ go ] ++ (with python311Packages; [ mock pytest7CheckHook pytest-mock ]);
|
2017-06-14 08:57:38 +00:00
|
|
|
|
2022-07-23 18:27:18 +00:00
|
|
|
disabledTests = lib.optionals stdenv.isDarwin [
|
2021-11-04 19:59:32 +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-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/nvbn/thefuck";
|
2020-10-11 05:55:05 +00:00
|
|
|
description = "Magnificent app which corrects your previous console command";
|
2017-06-14 08:57:38 +00:00
|
|
|
license = licenses.mit;
|
2024-03-21 23:01:52 +00:00
|
|
|
maintainers = with maintainers; [ marcusramberg ];
|
2017-06-14 08:57:38 +00:00
|
|
|
};
|
|
|
|
}
|