9405df4a82
GitOrigin-RevId: 8e4fe32876ca15e3d5eb3ecd3ca0b224417f5f17
38 lines
782 B
Nix
38 lines
782 B
Nix
{ lib, buildPythonPackage, pythonOlder, fetchPypi
|
|
, appdirs
|
|
, black
|
|
, importlib-metadata
|
|
, isPy3k
|
|
, jedi
|
|
, prompt_toolkit
|
|
, pygments
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "ptpython";
|
|
version = "3.0.17";
|
|
disabled = !isPy3k;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "911d25cca31a8e4f9b2ecd16dcdad793b8859e94fca1275f3485d8cdf20b13de";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
appdirs
|
|
black # yes, this is in install_requires
|
|
jedi
|
|
prompt_toolkit
|
|
pygments
|
|
] ++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ];
|
|
|
|
# no tests to run
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
description = "An advanced Python REPL";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ mlieberman85 ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|