at v206 51 lines 1.6 kB view raw
1{ stdenv, fetchurl, buildPythonPackage, wxPython, makeDesktopItem }: 2 3buildPythonPackage rec { 4 name = "winpdb-1.4.8"; 5 namePrefix = ""; 6 7 src = fetchurl { 8 url = "https://winpdb.googlecode.com/files/${name}.tar.gz"; 9 sha256 = "0vkpd24r40j928vc04c721innv0168sbllg97v4zw10adm24d8fs"; 10 }; 11 12 propagatedBuildInputs = [ wxPython ]; 13 14 desktopItem = makeDesktopItem { 15 name = "winpdb"; 16 exec = "winpdb"; 17 icon = "winpdb"; 18 comment = "Platform independend Python debugger"; 19 desktopName = "Winpdb"; 20 genericName = "Python Debugger"; 21 categories = "Application;Development;Debugger;"; 22 }; 23 24 # Don't call gnome-terminal with "--disable-factory" flag, which is 25 # unsupported since GNOME >= 3.10. Apparently, debian also does this fix: 26 # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=757718 27 postPatch = '' 28 sed -i "s/--disable-factory//" rpdb2.py 29 ''; 30 31 postInstall = '' 32 mkdir -p "$out"/share/applications 33 cp "$desktopItem"/share/applications/* "$out"/share/applications/ 34 35 mkdir -p "$out"/share/icons 36 cp artwork/winpdb-icon.svg "$out"/share/icons/winpdb.svg 37 ''; 38 39 meta = with stdenv.lib; { 40 description = "Platform independent Python debugger"; 41 longDescription = '' 42 Winpdb is a platform independent GPL Python debugger with support for 43 multiple threads, namespace modification, embedded debugging, encrypted 44 communication and is up to 20 times faster than pdb. 45 ''; 46 homepage = http://winpdb.org/; 47 license = licenses.gpl2Plus; 48 platforms = platforms.all; 49 maintainers = [ maintainers.bjornfor ]; 50 }; 51}