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