diff --git a/pkgs/development/python-modules/fn/default.nix b/pkgs/development/python-modules/fn/default.nix index 0acdf24d954..e7a0d4c0416 100644 --- a/pkgs/development/python-modules/fn/default.nix +++ b/pkgs/development/python-modules/fn/default.nix @@ -2,12 +2,17 @@ , buildPythonPackage , fetchpatch , fetchPypi +, pythonAtLeast }: buildPythonPackage rec { pname = "fn"; version = "0.4.3"; + # Python 3.11 changed the API of the `inspect` module and fn was never + # updated to adapt; last commit was in 2014. + disabled = pythonAtLeast "3.11"; + src = fetchPypi { inherit pname version; sha256 = "1nmsjmn8jb4gp22ksx0j0hhdf4y0zm8rjykyy2i6flzimg6q1kgq";