Files
nixpkgs/pkgs/development/python-modules/ipdb/default.nix
T
Michael Daniels 075e8c2c4f treewide: change 'format = "pyproject";' to 'pyproject = true;'
This is almost all find-and-replace.

I manually edited:
* pkgs/development/python-modules/notifications-android-tv/default.nix,
* pkgs/servers/home-assistant/default.nix,
* pkgs/development/tools/continuous-integration/buildbot/master.nix

A few files have not been changed in this PR because they would cause rebuilds.

This PR should have 0 rebuilds.
2026-01-12 17:50:35 -05:00

63 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
pythonAtLeast,
pythonOlder,
decorator,
ipython,
isPyPy,
exceptiongroup,
tomli,
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
]
++ lib.optionals (pythonOlder "3.11") [
exceptiongroup
tomli
];
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 = [ ];
};
}