1{ stdenv, fetchurl, python, emacs }:
2
3stdenv.mkDerivation {
4 name = "pydb-1.26";
5
6 src = fetchurl {
7 url = "mirror://sourceforge/sourceforge/bashdb/pydb-1.26.tar.bz2";
8 sha256 = "1wlkz1hd5d4gkzhkjkzcm650c1lchj28hj36jx96mklglm41h4q1";
9 };
10
11 buildInputs = [ python emacs /* emacs is optional */ ];
12
13 preConfigure = ''
14 p="$(toPythonPath $out)"
15 configureFlags="$configureFlags --with-python=${python}/bin/python --with-site-packages=$p"
16 '';
17
18 meta = {
19 description = "Python debugger with GDB-like commands and Emacs bindings";
20 homepage = http://bashdb.sourceforge.net/pydb/;
21 license = stdenv.lib.licenses.gpl3;
22 platforms = stdenv.lib.platforms.all;
23 };
24}