Change:
Steps to reproduce the behavior: nixpkgs-unstable thefuck Please run and paste the result. Add a :+1: [reaction] to [issues you find important]. [reaction]: [issues you find important]:
Seems fixable by moving to an unstable rev
Also related
Same behavior here on MacOS using home-manager. Just a note that I'm on Python 3.12.3, so I'm not sure that the commit noted above will take this into consideration as that just adds support for 3.12-dev.
I'm currently on vacation, so a bit limited time. I guess our options are either pinning it to python11 until there's a release, moving to unstable or adding that commit as a patch.
This happened due to recent shift to Python 3.12 in Nixpkgs. Mind backporting it then?

Discussion:
<ins> { lib, stdenv, fetchFromGitHub, python311Packages, go, }: python311Packages.buildPythonApplication rec { pname = "thefuck"; version = "3.32"; src = fetchFromGitHub { owner = "nvbn"; repo = "thefuck"; rev = "refs/tags/${version}"; hash = "sha256-bRCy95owBJaxoyCNQF6gEENoxCkmorhyKzZgU1dQN6I="; }; dependencies = with python311Packages; [ colorama decorator psutil pyte six ]; nativeCheckInputs = [ go ] ++ (with python311Packages; [ mock pytest7CheckHook pytest-mock ]); disabledTests = lib.optionals 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 = { homepage = "https://github.com/nvbn/thefuck"; description = "Magnificent app which corrects your previous console command"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ marcusramberg ]; }; } </ins>

<del> { lib, stdenv, fetchFromGitHub, buildPythonApplication , colorama, decorator, psutil, pyte, six , go, mock, pytest7CheckHook, pytest-mock }: buildPythonApplication rec { pname = "thefuck"; version = "3.32"; src = fetchFromGitHub { owner = "nvbn"; repo = pname; rev = version; sha256 = "sha256-bRCy95owBJaxoyCNQF6gEENoxCkmorhyKzZgU1dQN6I="; }; propagatedBuildInputs = [ colorama decorator psutil pyte six ]; nativeCheckInputs = [ go mock pytest7CheckHook pytest-mock ]; disabledTests = lib.optionals 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"; license = licenses.mit; maintainers = with maintainers; [ marcusramberg ]; }; } </del>

themes = recurseIntoAttrs (getPackagesWithPrefix "theme"); }; <del> thefuck = python3Packages.callPackage ../tools/misc/thefuck { }; </del> theme-sh = callPackage ../tools/misc/theme-sh { }; thiefmd = callPackage ../applications/editors/thiefmd { };