2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pythonOlder
|
|
|
|
# Build dependencies
|
|
|
|
, glibcLocales
|
|
|
|
# Test dependencies
|
|
|
|
, nose
|
|
|
|
, pygments
|
|
|
|
# Runtime dependencies
|
|
|
|
, jedi
|
|
|
|
, decorator
|
2021-06-28 23:13:55 +00:00
|
|
|
, matplotlib-inline
|
2020-04-24 23:36:52 +00:00
|
|
|
, pickleshare
|
|
|
|
, traitlets
|
2021-08-05 21:33:18 +00:00
|
|
|
, prompt-toolkit
|
2020-04-24 23:36:52 +00:00
|
|
|
, pexpect
|
|
|
|
, appnope
|
|
|
|
, backcall
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ipython";
|
2021-12-26 17:43:05 +00:00
|
|
|
version = "7.29.0";
|
2020-09-25 04:45:31 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-12-26 17:43:05 +00:00
|
|
|
sha256 = "4f69d7423a5a1972f6347ff233e38bbf4df6a150ef20fbb00c635442ac3060aa";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
prePatch = lib.optionalString stdenv.isDarwin ''
|
|
|
|
substituteInPlace setup.py --replace "'gnureadline'" " "
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs = [ glibcLocales ];
|
|
|
|
|
|
|
|
checkInputs = [ nose pygments ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
jedi
|
|
|
|
decorator
|
2021-06-28 23:13:55 +00:00
|
|
|
matplotlib-inline
|
2020-04-24 23:36:52 +00:00
|
|
|
pickleshare
|
|
|
|
traitlets
|
2021-08-05 21:33:18 +00:00
|
|
|
prompt-toolkit
|
2020-04-24 23:36:52 +00:00
|
|
|
pygments
|
|
|
|
pexpect
|
|
|
|
backcall
|
|
|
|
] ++ lib.optionals stdenv.isDarwin [appnope];
|
|
|
|
|
|
|
|
LC_ALL="en_US.UTF-8";
|
|
|
|
|
|
|
|
doCheck = false; # Circular dependency with ipykernel
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
nosetests
|
|
|
|
'';
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"IPython"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "IPython: Productive Interactive Computing";
|
|
|
|
homepage = "http://ipython.org/";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ bjornfor fridh ];
|
|
|
|
};
|
|
|
|
}
|