mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 08:23:09 +00:00
pythonPackages.python2-pythondialog: refactor move to python-modules
This commit is contained in:
parent
d23381f713
commit
ef769d741c
@ -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;
|
||||
};
|
||||
|
||||
}
|
@ -2274,24 +2274,7 @@ in {
|
||||
cudaSupport = false;
|
||||
};
|
||||
|
||||
python2-pythondialog = buildPythonPackage rec {
|
||||
name = "python2-pythondialog-${version}";
|
||||
version = "3.3.0";
|
||||
disabled = !isPy27;
|
||||
|
||||
src = pkgs.fetchurl {
|
||||
url = "mirror://pypi/p/python2-pythondialog/python2-pythondialog-${version}.tar.gz";
|
||||
sha256 = "1yhkagsh99bfi592ymczf8rnw8rk6n9hdqy3dd98m3yrx8zmjvry";
|
||||
};
|
||||
|
||||
patchPhase = ''
|
||||
substituteInPlace dialog.py --replace ":/bin:/usr/bin" ":$out/bin"
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = "http://pythondialog.sourceforge.net/";
|
||||
};
|
||||
};
|
||||
python2-pythondialog = callPackage ../development/python-modules/python2-pythondialog { };
|
||||
|
||||
pyRFC3339 = buildPythonPackage rec {
|
||||
name = "pyRFC3339-${version}";
|
||||
|
Loading…
Reference in New Issue
Block a user