Files
nixpkgs/pkgs/development/python-modules/ipdb/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01: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";
format = "pyproject";
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 = [ ];
};
}