1{ lib 2, buildPythonPackage 3, fetchPypi 4, isPy3k 5}: 6 7buildPythonPackage rec { 8 pname = "pythondialog"; 9 version = "3.5.2"; 10 disabled = !isPy3k; 11 12 src = fetchPypi { 13 inherit pname version; 14 sha256 = "4fc11e95540d1d5dbe0a60cd3fb7787354df85ee4b5da21f708ea46cb47bf6d6"; 15 }; 16 17 patchPhase = '' 18 substituteInPlace dialog.py --replace ":/bin:/usr/bin" ":$out/bin" 19 ''; 20 21 meta = with lib; { 22 description = "A Python interface to the UNIX dialog utility and mostly-compatible programs"; 23 homepage = "http://pythondialog.sourceforge.net/"; 24 license = licenses.lgpl3; 25 }; 26 27}