1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/python-modules/ptpython/default.nix

27 lines
739 B
Nix
Raw Normal View History

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-07-31 09:56:43 +01:00
version = "3.0.3";
disabled = !isPy3k;
2017-09-15 01:48:17 +01:00
src = fetchPypi {
inherit pname version;
2020-07-31 09:56:43 +01:00
sha256 = "9ac4e4047ca3a03133702a353a93cf56ca1ec1162bc7ecaff087a91c03e3827b";
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;
};
}