2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2018-10-16 04:37:11 +01:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, isPyPy
|
|
|
|
, pkgs
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2019-07-20 06:53:46 +01:00
|
|
|
version = "8.0.0";
|
2018-10-16 04:37:11 +01:00
|
|
|
pname = "gnureadline";
|
|
|
|
disabled = isPyPy;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-07-20 06:53:46 +01:00
|
|
|
sha256 = "0xllr43dizvybmb68i0ybk1xhaqx5abjwxa9vrg43b9ds0pggvk1";
|
2018-10-16 04:37:11 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ pkgs.ncurses ];
|
|
|
|
patchPhase = ''
|
|
|
|
substituteInPlace setup.py --replace "/bin/bash" "${pkgs.bash}/bin/bash"
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-10-16 04:37:11 +01:00
|
|
|
description = "The standard Python readline extension statically linked against the GNU readline library";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/ludwigschwardt/python-gnureadline";
|
2018-10-16 04:37:11 +01:00
|
|
|
license = licenses.gpl3;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|