ffedc3e4a9
Unfortunately I don't have the time anymore to maintain those packages.
65 lines
1.2 KiB
Nix
65 lines
1.2 KiB
Nix
{ lib
|
|
, stdenv
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pythonOlder
|
|
# Build dependencies
|
|
, glibcLocales
|
|
# Test dependencies
|
|
, nose
|
|
, pygments
|
|
# Runtime dependencies
|
|
, jedi
|
|
, decorator
|
|
, pickleshare
|
|
, traitlets
|
|
, prompt_toolkit
|
|
, pexpect
|
|
, appnope
|
|
, backcall
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "ipython";
|
|
version = "7.2.0";
|
|
disabled = pythonOlder "3.5";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "6a9496209b76463f1dec126ab928919aaf1f55b38beb9219af3fe202f6bbdd12";
|
|
};
|
|
|
|
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
|
|
'';
|
|
|
|
meta = {
|
|
description = "IPython: Productive Interactive Computing";
|
|
homepage = http://ipython.org/;
|
|
license = lib.licenses.bsd3;
|
|
maintainers = with lib.maintainers; [ bjornfor fridh ];
|
|
};
|
|
}
|