a3bb8d7922
GitOrigin-RevId: 439b1605227b8adb1357b55ce8529d541abbe9eb
72 lines
1.3 KiB
Nix
72 lines
1.3 KiB
Nix
{ lib
|
|
, stdenv
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pythonOlder
|
|
# Build dependencies
|
|
, glibcLocales
|
|
# Test dependencies
|
|
, nose
|
|
, pygments
|
|
# Runtime dependencies
|
|
, jedi
|
|
, decorator
|
|
, matplotlib-inline
|
|
, pickleshare
|
|
, traitlets
|
|
, prompt-toolkit
|
|
, pexpect
|
|
, appnope
|
|
, backcall
|
|
, fetchpatch
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "ipython";
|
|
version = "7.24.1";
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "9bc24a99f5d19721fb8a2d1408908e9c0520a17fff2233ffe82620847f17f1b6";
|
|
};
|
|
|
|
prePatch = lib.optionalString stdenv.isDarwin ''
|
|
substituteInPlace setup.py --replace "'gnureadline'" " "
|
|
'';
|
|
|
|
buildInputs = [ glibcLocales ];
|
|
|
|
checkInputs = [ nose pygments ];
|
|
|
|
propagatedBuildInputs = [
|
|
jedi
|
|
decorator
|
|
matplotlib-inline
|
|
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";
|
|
homepage = "http://ipython.org/";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ bjornfor fridh ];
|
|
};
|
|
}
|