2021-03-01 00:27:45 +00:00
|
|
|
{ lib, buildPythonPackage, pythonOlder, fetchPypi
|
|
|
|
, appdirs
|
|
|
|
, black
|
|
|
|
, importlib-metadata
|
|
|
|
, isPy3k
|
|
|
|
, jedi
|
|
|
|
, prompt_toolkit
|
|
|
|
, pygments
|
|
|
|
}:
|
2017-09-15 01:48:17 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ptpython";
|
2021-02-20 09:09:13 +00:00
|
|
|
version = "3.0.16";
|
2019-10-07 16:20:23 +01:00
|
|
|
disabled = !isPy3k;
|
2017-09-15 01:48:17 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-02-20 09:09:13 +00:00
|
|
|
sha256 = "4b0f6e381a8251ec8d6aa94fe12f3400bf6edf789f89c8a6099f8a91d4a5d2e1";
|
2017-09-15 01:48:17 +01:00
|
|
|
};
|
|
|
|
|
2021-03-01 00:27:45 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
appdirs
|
|
|
|
black # yes, this is in install_requires
|
|
|
|
jedi
|
|
|
|
prompt_toolkit
|
|
|
|
pygments
|
|
|
|
] ++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ];
|
2017-09-15 01:48:17 +01:00
|
|
|
|
|
|
|
# no tests to run
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-09-15 01:48:17 +01:00
|
|
|
description = "An advanced Python REPL";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ mlieberman85 ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|