3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/pythondialog/default.nix

28 lines
587 B
Nix
Raw Normal View History

2019-09-13 10:14:15 +01:00
{ stdenv
, buildPythonPackage
, fetchPypi
, isPy3k
}:
buildPythonPackage rec {
pname = "pythondialog";
version = "3.5.0";
2019-09-13 10:14:15 +01:00
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "11ydvllwll23qmcd3saachcxzn1dj5if3kc36p37ncf06xc5c0m4";
2019-09-13 10:14:15 +01:00
};
patchPhase = ''
substituteInPlace dialog.py --replace ":/bin:/usr/bin" ":$out/bin"
'';
meta = with stdenv.lib; {
description = "A Python interface to the UNIX dialog utility and mostly-compatible programs";
homepage = "http://pythondialog.sourceforge.net/";
license = licenses.lgpl3;
};
}