diff --git a/pkgs/development/python-modules/contextlib2/default.nix b/pkgs/development/python-modules/contextlib2/default.nix index b5ea34675f6..19c26dbdd21 100644 --- a/pkgs/development/python-modules/contextlib2/default.nix +++ b/pkgs/development/python-modules/contextlib2/default.nix @@ -2,6 +2,7 @@ , buildPythonPackage , fetchPypi , python +, pythonAtLeast , pythonOlder , unittestCheckHook }: @@ -11,7 +12,9 @@ buildPythonPackage rec { version = "21.6.0"; format = "setuptools"; - disabled = pythonOlder "3.6"; + # Python 3.11 not currently supported + # https://github.com/jazzband/contextlib2/issues/43 + disabled = pythonOlder "3.6" || pythonAtLeast "3.11"; src = fetchPypi { inherit pname version;