nixpkgs/pkgs/development/python-modules/ipdb/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

54 lines
905 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, decorator
, ipython
, isPyPy
, exceptiongroup
, tomli
, setuptools
, unittestCheckHook
}:
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 = [
unittestCheckHook
];
preCheck = ''
export HOME=$(mktemp -d)
'';
meta = with lib; {
homepage = "https://github.com/gotcha/ipdb";
description = "IPython-enabled pdb";
mainProgram = "ipdb3";
license = licenses.bsd0;
maintainers = [ ];
};
}