diff --git a/pkgs/development/python-modules/astropy-helpers/default.nix b/pkgs/development/python-modules/astropy-helpers/default.nix index 6588d88009dc..c803ac0449c3 100644 --- a/pkgs/development/python-modules/astropy-helpers/default.nix +++ b/pkgs/development/python-modules/astropy-helpers/default.nix @@ -3,6 +3,7 @@ buildPythonPackage, fetchPypi, isPy3k, + pythonAtLeast, }: buildPythonPackage rec { @@ -10,7 +11,8 @@ buildPythonPackage rec { version = "4.0.1"; format = "setuptools"; - disabled = !isPy3k; + # ModuleNotFoundError: No module named 'imp' + disabled = !isPy3k || pythonAtLeast "3.12"; doCheck = false; # tests requires sphinx-astropy