Files
nixpkgs/pkgs/development/python-modules/gnureadline/default.nix
T
Alexis Hildebrandt f8c4a98e8e treewide: Remove the definite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"([Tt]he)? ' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Tt]he (.)/\1\U\2/'
2024-06-09 23:08:46 +02:00

31 lines
674 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
isPyPy,
pkgs,
}:
buildPythonPackage rec {
version = "8.1.2";
format = "setuptools";
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 = "Standard Python readline extension statically linked against the GNU readline library";
homepage = "https://github.com/ludwigschwardt/python-gnureadline";
license = licenses.gpl3;
};
}