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