pythonPackages.gnureadline: refactor move to python-modules
This commit is contained in:
parent
348b2fb38c
commit
74472620ce
29
pkgs/development/python-modules/gnureadline/default.nix
Normal file
29
pkgs/development/python-modules/gnureadline/default.nix
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
{ stdenv
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchPypi
|
||||||
|
, isPyPy
|
||||||
|
, pkgs
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
version = "6.3.3";
|
||||||
|
pname = "gnureadline";
|
||||||
|
disabled = isPyPy;
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
|
sha256 = "1ghck2zz4xbqa3wz73brgjhrqj55p9hc1fq6c9zb09dnyhwb0nd2";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildInputs = [ pkgs.ncurses ];
|
||||||
|
patchPhase = ''
|
||||||
|
substituteInPlace setup.py --replace "/bin/bash" "${pkgs.bash}/bin/bash"
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
description = "The standard Python readline extension statically linked against the GNU readline library";
|
||||||
|
homepage = http://github.com/ludwigschwardt/python-gnureadline;
|
||||||
|
license = licenses.gpl3;
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
@ -1814,22 +1814,7 @@ in {
|
|||||||
|
|
||||||
gmusicapi = callPackage ../development/python-modules/gmusicapi { };
|
gmusicapi = callPackage ../development/python-modules/gmusicapi { };
|
||||||
|
|
||||||
|
gnureadline = callPackage ../development/python-modules/gnureadline { };
|
||||||
gnureadline = buildPythonPackage rec {
|
|
||||||
version = "6.3.3";
|
|
||||||
name = "gnureadline-${version}";
|
|
||||||
disabled = isPyPy;
|
|
||||||
|
|
||||||
src = pkgs.fetchurl {
|
|
||||||
url = "mirror://pypi/g/gnureadline/${name}.tar.gz";
|
|
||||||
sha256 = "1ghck2zz4xbqa3wz73brgjhrqj55p9hc1fq6c9zb09dnyhwb0nd2";
|
|
||||||
};
|
|
||||||
|
|
||||||
buildInputs = [ pkgs.ncurses ];
|
|
||||||
patchPhase = ''
|
|
||||||
substituteInPlace setup.py --replace "/bin/bash" "${pkgs.bash}/bin/bash"
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
gnutls = buildPythonPackage rec {
|
gnutls = buildPythonPackage rec {
|
||||||
pname = "python-gnutls";
|
pname = "python-gnutls";
|
||||||
|
Loading…
Reference in New Issue
Block a user