Files
nixpkgs/pkgs/development/python-modules/ipdb/default.nix
T
Martin Weinelt 8ea6bde88d treewide: prune pythonOlder 3.10/3.11
This is a post 3.10 removal cleanup.
2026-02-15 04:33:54 +01:00

56 lines
1.0 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
pythonAtLeast,
decorator,
ipython,
isPyPy,
setuptools,
pytestCheckHook,
pytest-timeout,
}:
buildPythonPackage rec {
pname = "ipdb";
version = "0.13.13";
pyproject = true;
disabled = isPyPy; # setupterm: could not find terminfo database
src = fetchPypi {
inherit pname version;
hash = "sha256-46xgGO8FEm1EKvaAqthjAG7BnQIpBWGsiLixwLDPxyY=";
};
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [
ipython
decorator
];
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 = {
homepage = "https://github.com/gotcha/ipdb";
description = "IPython-enabled pdb";
mainProgram = "ipdb3";
license = lib.licenses.bsd0;
maintainers = [ ];
};
}