mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-13 19:43:02 +08:00
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>
47 lines
860 B
Nix
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 ];
|
|
};
|
|
}
|