Files
nixpkgs/pkgs/development/python-modules/gnureadline/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

31 lines
669 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
isPyPy,
pkgs,
}:
buildPythonPackage rec {
version = "8.2.13";
format = "setuptools";
pname = "gnureadline";
disabled = isPyPy;
src = fetchPypi {
inherit pname version;
hash = "sha256-ybnh57qZqAu1DBICfWzmkldPd6Zb9XvJcEHPgcD0m9E=";
};
buildInputs = [ pkgs.ncurses ];
patchPhase = ''
substituteInPlace setup.py --replace "/bin/bash" "${pkgs.bash}/bin/bash"
'';
meta = {
description = "Standard Python readline extension statically linked against the GNU readline library";
homepage = "https://github.com/ludwigschwardt/python-gnureadline";
license = lib.licenses.gpl3;
};
}