2018-10-16 04:37:11 +01:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, isPyPy
|
|
|
|
, pkgs
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2018-10-24 16:24:12 +01:00
|
|
|
version = "6.3.8";
|
2018-10-16 04:37:11 +01:00
|
|
|
pname = "gnureadline";
|
|
|
|
disabled = isPyPy;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-10-24 16:24:12 +01:00
|
|
|
sha256 = "0ddhj98x2nv45iz4aadk4b9m0b1kpsn1xhcbypn5cd556knhiqjq";
|
2018-10-16 04:37:11 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|