nixpkgs/pkgs/development/python-modules/ipdb/default.nix
Guillaume Girol 33afbf39f6 treewide: switch to nativeCheckInputs
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.
2023-01-21 12:00:00 +00:00

52 lines
863 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, decorator
, ipython
, isPyPy
, tomli
, setuptools
, unittestCheckHook
}:
buildPythonPackage rec {
pname = "ipdb";
version = "0.13.11";
format = "pyproject";
disabled = isPyPy; # setupterm: could not find terminfo database
src = fetchPypi {
inherit pname version;
hash = "sha256-wjtnNvAf1Fhswuy+vfeaXrRUeWhT4c2PLtO3uR1KPpM=";
};
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
ipython
decorator
] ++ lib.optionals (pythonOlder "3.11") [
tomli
];
nativeCheckInputs = [
unittestCheckHook
];
preCheck = ''
export HOME=$(mktemp -d)
'';
meta = with lib; {
homepage = "https://github.com/gotcha/ipdb";
description = "IPython-enabled pdb";
license = licenses.bsd0;
maintainers = [ maintainers.costrouc ];
};
}