nixpkgs/pkgs/development/python-modules/ptpython/default.nix

27 lines
725 B
Nix
Raw Normal View History

{ lib, buildPythonPackage, pythonOlder, fetchPypi, prompt_toolkit, appdirs, docopt, jedi
2020-08-16 00:09:58 +01:00
, pygments, importlib-metadata, isPy3k }:
2017-09-15 01:48:17 +01:00
buildPythonPackage rec {
pname = "ptpython";
version = "3.0.16";
disabled = !isPy3k;
2017-09-15 01:48:17 +01:00
src = fetchPypi {
inherit pname version;
sha256 = "4b0f6e381a8251ec8d6aa94fe12f3400bf6edf789f89c8a6099f8a91d4a5d2e1";
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 lib; {
2017-09-15 01:48:17 +01:00
description = "An advanced Python REPL";
license = licenses.bsd3;
maintainers = with maintainers; [ mlieberman85 ];
platforms = platforms.all;
};
}