depot/third_party/nixpkgs/pkgs/development/python-modules/ptpython/default.nix
Default email 75ca762b89 Project import generated by Copybara.
GitOrigin-RevId: 29b0d4d0b600f8f5dd0b86e3362a33d4181938f9
2021-03-09 11:18:52 +08:00

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.16";
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "4b0f6e381a8251ec8d6aa94fe12f3400bf6edf789f89c8a6099f8a91d4a5d2e1";
};
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;
};
}