2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
pythonOlder,
|
|
|
|
fetchPypi,
|
|
|
|
appdirs,
|
|
|
|
jedi,
|
|
|
|
prompt-toolkit,
|
|
|
|
pygments,
|
2024-09-19 14:19:46 +00:00
|
|
|
setuptools,
|
2021-03-09 03:18:52 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ptpython";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "3.0.29";
|
|
|
|
pyproject = true;
|
2022-12-02 08:20:57 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-udYlGDrvk6Zz/DLL4cH8r1FBLnpPGVkFIc2syt8lGG4=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
build-system = [ setuptools ];
|
|
|
|
|
|
|
|
dependencies = [
|
2021-03-09 03:18:52 +00:00
|
|
|
appdirs
|
|
|
|
jedi
|
2021-08-05 21:33:18 +00:00
|
|
|
prompt-toolkit
|
2021-03-09 03:18:52 +00:00
|
|
|
pygments
|
2024-09-19 14:19:46 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# no tests to run
|
|
|
|
doCheck = false;
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "ptpython" ];
|
2022-12-02 08:20:57 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Advanced Python REPL";
|
2022-09-09 14:08:57 +00:00
|
|
|
homepage = "https://github.com/prompt-toolkit/ptpython";
|
2022-12-02 08:20:57 +00:00
|
|
|
changelog = "https://github.com/prompt-toolkit/ptpython/blob/${version}/CHANGELOG";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ mlieberman85 ];
|
|
|
|
};
|
|
|
|
}
|