Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ stdenv 2, buildPythonPackage 3, fetchPypi 4, isPy3k 5}: 6 7buildPythonPackage rec { 8 pname = "pythondialog"; 9 version = "3.5.1"; 10 disabled = !isPy3k; 11 12 src = fetchPypi { 13 inherit pname version; 14 sha256 = "34a0687290571f37d7d297514cc36bd4cd044a3a4355271549f91490d3e7ece8"; 15 }; 16 17 patchPhase = '' 18 substituteInPlace dialog.py --replace ":/bin:/usr/bin" ":$out/bin" 19 ''; 20 21 meta = with stdenv.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}