2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2018-10-16 20:44:31 +01:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, isPy3k
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "python2-pythondialog";
|
2019-12-19 19:31:21 +00:00
|
|
|
version = "3.5.1";
|
2018-10-16 20:44:31 +01:00
|
|
|
disabled = isPy3k;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-12-19 19:31:21 +00:00
|
|
|
sha256 = "ad159c7b455d9cb2a5173590656d19a26e9cc208264cfab755f5827070d18613";
|
2018-10-16 20:44:31 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
substituteInPlace dialog.py --replace ":/bin:/usr/bin" ":$out/bin"
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-10-16 20:44:31 +01:00
|
|
|
description = "A Python interface to the UNIX dialog utility and mostly-compatible programs (Python 2 backport)";
|
|
|
|
homepage = "http://pythondialog.sourceforge.net/";
|
|
|
|
license = licenses.lgpl3;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|