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

73 lines
1.3 KiB
Nix
Raw Normal View History

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