1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-06-22 17:31:04 +03:00

pythonPackages.python2-pythondialog: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-16 15:44:31 -04:00 committed by Frederik Rietdijk
parent d23381f713
commit ef769d741c
2 changed files with 28 additions and 18 deletions

View file

@ -0,0 +1,27 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, isPy3k
}:
buildPythonPackage rec {
pname = "python2-pythondialog";
version = "3.3.0";
disabled = isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "1yhkagsh99bfi592ymczf8rnw8rk6n9hdqy3dd98m3yrx8zmjvry";
};
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 (Python 2 backport)";
homepage = "http://pythondialog.sourceforge.net/";
license = licenses.lgpl3;
};
}