f34ce41345
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
30 lines
675 B
Nix
30 lines
675 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
isPyPy,
|
|
pkgs,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
version = "8.2.10";
|
|
format = "setuptools";
|
|
pname = "gnureadline";
|
|
disabled = isPyPy;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-p0a6mNTeN7B55C2Um3BMM8FoswvR+QcaHSXJ2ppEmZc=";
|
|
};
|
|
|
|
buildInputs = [ pkgs.ncurses ];
|
|
patchPhase = ''
|
|
substituteInPlace setup.py --replace "/bin/bash" "${pkgs.bash}/bin/bash"
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Standard Python readline extension statically linked against the GNU readline library";
|
|
homepage = "https://github.com/ludwigschwardt/python-gnureadline";
|
|
license = licenses.gpl3;
|
|
};
|
|
}
|