2020-08-16 00:09:58 +01:00
|
|
|
{ stdenv, lib, buildPythonPackage, pythonOlder, fetchPypi, prompt_toolkit, appdirs, docopt, jedi
|
|
|
|
, pygments, importlib-metadata, isPy3k }:
|
2017-09-15 01:48:17 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ptpython";
|
2020-08-16 18:31:10 +01:00
|
|
|
version = "3.0.5";
|
2019-10-07 16:20:23 +01:00
|
|
|
disabled = !isPy3k;
|
2017-09-15 01:48:17 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-08-16 18:31:10 +01:00
|
|
|
sha256 = "5094e7e4daa77453d3c33eb7b7ebbf1060be4446521865a94e698bc85ff15930";
|
2017-09-15 01:48:17 +01:00
|
|
|
};
|
|
|
|
|
2020-08-16 00:09:58 +01:00
|
|
|
propagatedBuildInputs = [ appdirs prompt_toolkit docopt jedi pygments ]
|
|
|
|
++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ];
|
2017-09-15 01:48:17 +01:00
|
|
|
|
|
|
|
# no tests to run
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "An advanced Python REPL";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ mlieberman85 ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|