depot/third_party/nixpkgs/pkgs/development/python-modules/gnureadline/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

29 lines
660 B
Nix

{ stdenv
, buildPythonPackage
, fetchPypi
, isPyPy
, pkgs
}:
buildPythonPackage rec {
version = "8.0.0";
pname = "gnureadline";
disabled = isPyPy;
src = fetchPypi {
inherit pname version;
sha256 = "0xllr43dizvybmb68i0ybk1xhaqx5abjwxa9vrg43b9ds0pggvk1";
};
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 = "https://github.com/ludwigschwardt/python-gnureadline";
license = licenses.gpl3;
};
}