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
|
|
|
|
, traitlets
|
|
|
|
, prompt_toolkit
|
|
|
|
, pexpect
|
|
|
|
, appnope
|
2018-04-04 19:09:22 +01:00
|
|
|
, backcall
|
2019-06-15 09:13:45 +01:00
|
|
|
, fetchpatch
|
2017-04-20 12:41:22 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ipython";
|
2019-05-30 07:47:55 +01:00
|
|
|
version = "7.5.0";
|
2018-11-03 13:32:14 +00:00
|
|
|
disabled = pythonOlder "3.5";
|
2017-04-20 12:41:22 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-05-30 07:47:55 +01:00
|
|
|
sha256 = "e840810029224b56cd0d9e7719dc3b39cf84d577f8ac686547c8ba7a06eeab26";
|
2017-04-20 12:41:22 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
prePatch = lib.optionalString stdenv.isDarwin ''
|
|
|
|
substituteInPlace setup.py --replace "'gnureadline'" " "
|
|
|
|
'';
|
|
|
|
|
2019-06-15 09:13:45 +01:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/ipython/ipython/commit/e1b53e9ef91a43b9e275bb9e48b4253218375d87.patch";
|
|
|
|
sha256 = "sha256:0q7zsgalwxss6aikhakbdkvvz0g4ac4sa3ncrklm74ksqh56rsgb";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2017-04-20 12:41:22 +01:00
|
|
|
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
|
|
|
|
traitlets
|
|
|
|
prompt_toolkit
|
2018-11-03 13:32:14 +00:00
|
|
|
pygments
|
2017-04-20 12:41:22 +01:00
|
|
|
pexpect
|
2018-04-04 19:09:22 +01:00
|
|
|
backcall
|
2018-11-03 13:32:14 +00:00
|
|
|
] ++ lib.optionals stdenv.isDarwin [appnope];
|
2017-04-20 12:41:22 +01:00
|
|
|
|
|
|
|
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 22:45:33 +00:00
|
|
|
maintainers = with lib.maintainers; [ bjornfor fridh ];
|
2017-04-20 12:41:22 +01:00
|
|
|
};
|
|
|
|
}
|