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