depot/third_party/nixpkgs/pkgs/development/python-modules/gnureadline/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

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;
};
}