2017-04-27 11:09:04 +02:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
# Build dependencies
|
|
|
|
, glibcLocales
|
|
|
|
# Test dependencies
|
|
|
|
, nose
|
|
|
|
, pygments
|
|
|
|
, testpath
|
|
|
|
, isPy27
|
|
|
|
, mock
|
|
|
|
# Runtime dependencies
|
|
|
|
, backports_shutil_get_terminal_size
|
|
|
|
, decorator
|
|
|
|
, pathlib2
|
|
|
|
, pickleshare
|
2017-05-07 12:55:45 +02:00
|
|
|
, requests
|
2017-04-27 11:09:04 +02:00
|
|
|
, simplegeneric
|
|
|
|
, traitlets
|
2018-11-21 12:37:26 +01:00
|
|
|
, prompt_toolkit
|
2017-04-27 11:09:04 +02:00
|
|
|
, pexpect
|
|
|
|
, appnope
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ipython";
|
2018-11-03 14:32:14 +01:00
|
|
|
version = "5.8.0";
|
2017-04-27 11:09:04 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-11-03 14:32:14 +01:00
|
|
|
sha256 = "4bac649857611baaaf76bc82c173aa542f7486446c335fe1a6c05d0d491c8906";
|
2017-04-27 11:09:04 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
prePatch = stdenv.lib.optionalString stdenv.isDarwin ''
|
|
|
|
substituteInPlace setup.py --replace "'gnureadline'" " "
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs = [ glibcLocales ];
|
|
|
|
|
|
|
|
checkInputs = [ nose pygments testpath ] ++ lib.optional isPy27 mock;
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2018-11-21 12:37:26 +01:00
|
|
|
backports_shutil_get_terminal_size decorator pickleshare prompt_toolkit
|
2017-05-07 12:55:45 +02:00
|
|
|
simplegeneric traitlets requests pathlib2 pexpect
|
2017-04-27 11:09:04 +02:00
|
|
|
] ++ lib.optionals stdenv.isDarwin [ appnope ];
|
|
|
|
|
|
|
|
LC_ALL="en_US.UTF-8";
|
|
|
|
|
|
|
|
doCheck = false; # Circular dependency with ipykernel
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
nosetests
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "IPython: Productive Interactive Computing";
|
|
|
|
homepage = http://ipython.org/;
|
|
|
|
license = lib.licenses.bsd3;
|
2019-03-12 23:45:33 +01:00
|
|
|
maintainers = with lib.maintainers; [ bjornfor orivej lnl7 ];
|
2017-04-27 11:09:04 +02:00
|
|
|
};
|
|
|
|
}
|