1{ stdenv
2, buildPythonPackage
3, fetchPypi
4, isPyPy
5, pkgs
6}:
7
8buildPythonPackage rec {
9 version = "6.3.8";
10 pname = "gnureadline";
11 disabled = isPyPy;
12
13 src = fetchPypi {
14 inherit pname version;
15 sha256 = "0ddhj98x2nv45iz4aadk4b9m0b1kpsn1xhcbypn5cd556knhiqjq";
16 };
17
18 buildInputs = [ pkgs.ncurses ];
19 patchPhase = ''
20 substituteInPlace setup.py --replace "/bin/bash" "${pkgs.bash}/bin/bash"
21 '';
22
23 meta = with stdenv.lib; {
24 description = "The standard Python readline extension statically linked against the GNU readline library";
25 homepage = http://github.com/ludwigschwardt/python-gnureadline;
26 license = licenses.gpl3;
27 };
28
29}