2017-04-20 12:41:22 +01:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pythonOlder
|
|
|
|
# Build dependencies
|
|
|
|
, glibcLocales
|
|
|
|
# Test dependencies
|
|
|
|
, nose
|
|
|
|
, pygments
|
|
|
|
# Runtime dependencies
|
|
|
|
, jedi
|
|
|
|
, decorator
|
|
|
|
, pickleshare
|
|
|
|
, simplegeneric
|
|
|
|
, traitlets
|
|
|
|
, prompt_toolkit
|
|
|
|
, pexpect
|
|
|
|
, appnope
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ipython";
|
2017-06-02 16:10:02 +01:00
|
|
|
version = "6.1.0";
|
2017-04-20 12:41:22 +01:00
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2017-06-02 16:10:02 +01:00
|
|
|
sha256 = "5c53e8ee4d4bec27879982b9f3b4aa2d6e3cfd7b26782d250fa117f85bb29814";
|
2017-04-20 12:41:22 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
prePatch = lib.optionalString stdenv.isDarwin ''
|
|
|
|
substituteInPlace setup.py --replace "'gnureadline'" " "
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs = [ glibcLocales ];
|
|
|
|
|
2017-04-27 10:09:04 +01:00
|
|
|
checkInputs = [ nose pygments ];
|
2017-04-20 12:41:22 +01:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
jedi
|
|
|
|
decorator
|
|
|
|
pickleshare
|
|
|
|
simplegeneric
|
|
|
|
traitlets
|
|
|
|
prompt_toolkit
|
|
|
|
pexpect
|
|
|
|
] ++ lib.optionals stdenv.isDarwin [appnope];
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|