2018-10-16 05:37:11 +02:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, isPyPy
|
|
|
|
, pkgs
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2018-10-24 17:24:12 +02:00
|
|
|
version = "6.3.8";
|
2018-10-16 05:37:11 +02:00
|
|
|
pname = "gnureadline";
|
|
|
|
disabled = isPyPy;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-10-24 17:24:12 +02:00
|
|
|
sha256 = "0ddhj98x2nv45iz4aadk4b9m0b1kpsn1xhcbypn5cd556knhiqjq";
|
2018-10-16 05:37:11 +02: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";
|
2019-04-15 01:25:45 +02:00
|
|
|
homepage = https://github.com/ludwigschwardt/python-gnureadline;
|
2018-10-16 05:37:11 +02:00
|
|
|
license = licenses.gpl3;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|