mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 19:02:57 +00:00
0215034f25
when they already rely on SRI hashes.
30 lines
647 B
Nix
30 lines
647 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, isPyPy
|
|
, pkgs
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
version = "8.1.2";
|
|
pname = "gnureadline";
|
|
disabled = isPyPy;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-QmKmqjVqsi72QvQ6f5TrQqctbwxTLttOjGuTP1cwVtI=";
|
|
};
|
|
|
|
buildInputs = [ pkgs.ncurses ];
|
|
patchPhase = ''
|
|
substituteInPlace setup.py --replace "/bin/bash" "${pkgs.bash}/bin/bash"
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "The standard Python readline extension statically linked against the GNU readline library";
|
|
homepage = "https://github.com/ludwigschwardt/python-gnureadline";
|
|
license = licenses.gpl3;
|
|
};
|
|
|
|
}
|