nixpkgs/pkgs/development/python-modules/ipython/default.nix

73 lines
1.3 KiB
Nix
Raw Normal View History

2017-04-20 13:41:22 +02:00
{ lib
, stdenv
, buildPythonPackage
, fetchPypi
, pythonOlder
# Build dependencies
, glibcLocales
# Test dependencies
, nose
, pygments
# Runtime dependencies
, jedi
, decorator
, matplotlib-inline
2017-04-20 13:41:22 +02:00
, pickleshare
, traitlets
, prompt-toolkit
2017-04-20 13:41:22 +02:00
, pexpect
, appnope
2018-04-04 20:09:22 +02:00
, backcall
, fetchpatch
2017-04-20 13:41:22 +02:00
}:
buildPythonPackage rec {
pname = "ipython";
version = "7.27.0";
disabled = pythonOlder "3.7";
2017-04-20 13:41:22 +02:00
src = fetchPypi {
inherit pname version;
sha256 = "58b55ebfdfa260dad10d509702dc2857cb25ad82609506b070cf2d7b7df5af13";
2017-04-20 13:41:22 +02:00
};
prePatch = lib.optionalString stdenv.isDarwin ''
substituteInPlace setup.py --replace "'gnureadline'" " "
'';
buildInputs = [ glibcLocales ];
checkInputs = [ nose pygments ];
2017-04-20 13:41:22 +02:00
propagatedBuildInputs = [
jedi
decorator
matplotlib-inline
2017-04-20 13:41:22 +02:00
pickleshare
traitlets
prompt-toolkit
pygments
2017-04-20 13:41:22 +02:00
pexpect
2018-04-04 20:09:22 +02:00
backcall
] ++ lib.optionals stdenv.isDarwin [appnope];
2017-04-20 13:41:22 +02:00
LC_ALL="en_US.UTF-8";
doCheck = false; # Circular dependency with ipykernel
checkPhase = ''
nosetests
'';
pythonImportsCheck = [
"IPython"
];
meta = with lib; {
2017-04-20 13:41:22 +02:00
description = "IPython: Productive Interactive Computing";
homepage = "http://ipython.org/";
license = licenses.bsd3;
maintainers = with maintainers; [ bjornfor fridh ];
2017-04-20 13:41:22 +02:00
};
}