2017-04-20 14:41:22 +03:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pythonOlder
|
|
|
|
# Build dependencies
|
|
|
|
, glibcLocales
|
|
|
|
# Test dependencies
|
|
|
|
, nose
|
|
|
|
, pygments
|
|
|
|
# Runtime dependencies
|
|
|
|
, jedi
|
|
|
|
, decorator
|
|
|
|
, pickleshare
|
|
|
|
, simplegeneric
|
|
|
|
, traitlets
|
|
|
|
, prompt_toolkit
|
|
|
|
, pexpect
|
|
|
|
, appnope
|
2017-11-11 10:57:09 +03:00
|
|
|
, typing
|
2018-04-04 21:09:22 +03:00
|
|
|
, backcall
|
2017-04-20 14:41:22 +03:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ipython";
|
2018-08-13 10:25:27 +03:00
|
|
|
version = "6.5.0";
|
2017-04-20 14:41:22 +03:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-08-13 10:25:27 +03:00
|
|
|
sha256 = "b0f2ef9eada4a68ef63ee10b6dde4f35c840035c50fd24265f8052c98947d5a4";
|
2017-04-20 14:41:22 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
prePatch = lib.optionalString stdenv.isDarwin ''
|
|
|
|
substituteInPlace setup.py --replace "'gnureadline'" " "
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs = [ glibcLocales ];
|
|
|
|
|
2017-04-27 12:09:04 +03:00
|
|
|
checkInputs = [ nose pygments ];
|
2017-04-20 14:41:22 +03:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
jedi
|
|
|
|
decorator
|
|
|
|
pickleshare
|
|
|
|
simplegeneric
|
|
|
|
traitlets
|
|
|
|
prompt_toolkit
|
|
|
|
pexpect
|
2018-04-04 21:09:22 +03:00
|
|
|
backcall
|
2017-11-11 10:57:09 +03:00
|
|
|
] ++ lib.optionals stdenv.isDarwin [appnope]
|
|
|
|
++ lib.optionals (pythonOlder "3.5") [ typing ];
|
2017-04-20 14:41:22 +03:00
|
|
|
|
|
|
|
LC_ALL="en_US.UTF-8";
|
|
|
|
|
|
|
|
doCheck = false; # Circular dependency with ipykernel
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
nosetests
|
|
|
|
'';
|
|
|
|
|
|
|
|
# IPython 6.0.0 and above does not support Python < 3.3.
|
|
|
|
# The last IPython version to support older Python versions
|
|
|
|
# is 5.3.x.
|
|
|
|
disabled = pythonOlder "3.3";
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "IPython: Productive Interactive Computing";
|
|
|
|
homepage = http://ipython.org/;
|
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
maintainers = with lib.maintainers; [ bjornfor jgeerds fridh ];
|
|
|
|
};
|
|
|
|
}
|