diff --git a/pkgs/development/python-modules/mobi/default.nix b/pkgs/development/python-modules/mobi/default.nix index c5e5d1e898c4..4b747b433131 100644 --- a/pkgs/development/python-modules/mobi/default.nix +++ b/pkgs/development/python-modules/mobi/default.nix @@ -6,6 +6,7 @@ hatchling, standard-imghdr, pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -29,6 +30,8 @@ buildPythonPackage rec { standard-imghdr ]; + pythonRemoveDeps = lib.optionals (pythonOlder "3.13") [ "standard-imghdr" ]; + nativeCheckInputs = [ pytestCheckHook ];