2021-03-09 03:18:52 +00:00
|
|
|
{ lib, buildPythonPackage, pythonOlder, fetchPypi
|
|
|
|
, appdirs
|
|
|
|
, black
|
|
|
|
, importlib-metadata
|
|
|
|
, isPy3k
|
|
|
|
, jedi
|
2021-08-05 21:33:18 +00:00
|
|
|
, prompt-toolkit
|
2021-03-09 03:18:52 +00:00
|
|
|
, pygments
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ptpython";
|
2021-09-18 10:52:07 +00:00
|
|
|
version = "3.0.20";
|
2020-04-24 23:36:52 +00:00
|
|
|
disabled = !isPy3k;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-09-18 10:52:07 +00:00
|
|
|
sha256 = "eafd4ced27ca5dc370881d4358d1ab5041b32d88d31af8e3c24167fe4af64ed6";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
appdirs
|
|
|
|
black # yes, this is in install_requires
|
|
|
|
jedi
|
2021-08-05 21:33:18 +00:00
|
|
|
prompt-toolkit
|
2021-03-09 03:18:52 +00:00
|
|
|
pygments
|
|
|
|
] ++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# no tests to run
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "An advanced Python REPL";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ mlieberman85 ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|