diff --git a/pkgs/development/python-modules/ipdb/default.nix b/pkgs/development/python-modules/ipdb/default.nix index 84123590fe1b..9d140f2bebfa 100644 --- a/pkgs/development/python-modules/ipdb/default.nix +++ b/pkgs/development/python-modules/ipdb/default.nix @@ -2,6 +2,7 @@ lib, buildPythonPackage, fetchPypi, + pythonAtLeast, pythonOlder, decorator, ipython, @@ -9,7 +10,8 @@ exceptiongroup, tomli, setuptools, - unittestCheckHook, + pytestCheckHook, + pytest-timeout, }: buildPythonPackage rec { @@ -36,12 +38,22 @@ buildPythonPackage rec { tomli ]; - nativeCheckInputs = [ unittestCheckHook ]; + nativeCheckInputs = [ pytestCheckHook ]; preCheck = '' export HOME=$(mktemp -d) ''; + disabledTestPaths = + [ + # OSError: pytest: reading from stdin while output is captured! Consider using `-s`. + "manual_test.py" + ] + ++ lib.optionals (pythonAtLeast "3.13") [ + # tests get stuck + "tests/test_opts.py" + ]; + meta = with lib; { homepage = "https://github.com/gotcha/ipdb"; description = "IPython-enabled pdb";