02dab4ab5c
Long term we should move everything over to `pyproject = true`, but in the mean time we can work towards deprecating the implicit `format` paremeter. cc https://github.com/NixOS/nixpkgs/issues/253154 cc @mweinelt @figsoda
28 lines
614 B
Nix
28 lines
614 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, isPy3k
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pythondialog";
|
|
version = "3.5.3";
|
|
format = "setuptools";
|
|
disabled = !isPy3k;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "b2a34a8af0a6625ccbdf45cd343b854fc6c1a85231dadc80b8805db836756323";
|
|
};
|
|
|
|
patchPhase = ''
|
|
substituteInPlace dialog.py --replace ":/bin:/usr/bin" ":$out/bin"
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "A Python interface to the UNIX dialog utility and mostly-compatible programs";
|
|
homepage = "http://pythondialog.sourceforge.net/";
|
|
license = licenses.lgpl3;
|
|
};
|
|
|
|
}
|