2019-12-24 17:15:33 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pythonOlder
|
|
|
|
# Build dependencies
|
|
|
|
, glibcLocales
|
|
|
|
# Test dependencies
|
|
|
|
, nose
|
|
|
|
, pygments
|
|
|
|
# Runtime dependencies
|
|
|
|
, jedi
|
|
|
|
, decorator
|
|
|
|
, pickleshare
|
|
|
|
, traitlets
|
|
|
|
, prompt_toolkit
|
|
|
|
, pexpect
|
|
|
|
, appnope
|
|
|
|
, backcall
|
|
|
|
, fetchpatch
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ipython";
|
|
|
|
version = "7.9.0";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "103jkw18z7fnwdal1mdbijjxi1fndzn31g887lmj7ddpf2r07lyz";
|
|
|
|
};
|
|
|
|
|
|
|
|
prePatch = lib.optionalString stdenv.isDarwin ''
|
|
|
|
substituteInPlace setup.py --replace "'gnureadline'" " "
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs = [ glibcLocales ];
|
|
|
|
|
|
|
|
checkInputs = [ nose pygments ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
jedi
|
|
|
|
decorator
|
|
|
|
pickleshare
|
|
|
|
traitlets
|
|
|
|
prompt_toolkit
|
|
|
|
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";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://ipython.org/";
|
2019-12-24 17:15:33 +00:00
|
|
|
license = licenses.bsd3;
|
2020-06-05 17:43:38 +01:00
|
|
|
maintainers = with maintainers; [ bjornfor ];
|
2019-12-24 17:15:33 +00:00
|
|
|
};
|
|
|
|
}
|