Files
nixpkgs/pkgs/development/python-modules/ptpython/default.nix
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

47 lines
860 B
Nix

{
lib,
buildPythonPackage,
pythonOlder,
fetchPypi,
appdirs,
jedi,
prompt-toolkit,
pygments,
setuptools,
}:
buildPythonPackage rec {
pname = "ptpython";
version = "3.0.32";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-EWUXeCNt6VxYK0JzcpTlCma6SiH6AcAJDqcIFa9Hj+A=";
};
build-system = [ setuptools ];
dependencies = [
appdirs
jedi
prompt-toolkit
pygments
];
# no tests to run
doCheck = false;
pythonImportsCheck = [ "ptpython" ];
meta = {
description = "Advanced Python REPL";
homepage = "https://github.com/prompt-toolkit/ptpython";
changelog = "https://github.com/prompt-toolkit/ptpython/blob/${version}/CHANGELOG";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ mlieberman85 ];
};
}