nixpkgs/pkgs/development/python-modules/ipython/default.nix
Chris Ostrouchov 189acf712d python27Packages.ipython: 5.7.0 -> 5.8.0, python36Packages.ipython 5.7.0 -> 7.1.1
- removed patch for sage as it is applied in most recent release.
 - simplified `ipython` attribute no need for explicit version `5`
   vs. `6`.
 - upgrade to most recent version of ipython
2018-11-21 12:38:54 +01:00

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.1.1";
disabled = pythonOlder "3.5";
src = fetchPypi {
inherit pname version;
sha256 = "b10a7ddd03657c761fc503495bc36471c8158e3fc948573fb9fe82a7029d8efd";
};
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 jgeerds fridh ];
};
}