nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, buildPythonPackage
3, fetchPypi
4, ipython
5, isPyPy
6, isPy27
7, mock
8}:
9
10buildPythonPackage rec {
11 pname = "ipdb";
12 version = "0.13.7";
13 disabled = isPyPy || isPy27; # setupterm: could not find terminfo database
14
15 src = fetchPypi {
16 inherit pname version;
17 sha256 = "178c367a61c1039e44e17c56fcc4a6e7dc11b33561261382d419b6ddb4401810";
18 };
19
20 propagatedBuildInputs = [ ipython ];
21 checkInputs = [ mock ];
22
23 preCheck = ''
24 export HOME=$(mktemp -d)
25 '';
26
27 meta = with lib; {
28 homepage = "https://github.com/gotcha/ipdb";
29 description = "IPython-enabled pdb";
30 license = licenses.bsd0;
31 maintainers = [ maintainers.costrouc ];
32 };
33
34}