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

67 lines
1.2 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
, pickleshare
, traitlets
, prompt_toolkit
, pexpect
, appnope
2018-04-04 20:09:22 +02:00
, backcall
, fetchpatch
2017-04-20 13:41:22 +02:00
}:
buildPythonPackage rec {
pname = "ipython";
2019-07-20 10:52:02 +02:00
version = "7.6.1";
disabled = pythonOlder "3.5";
2017-04-20 13:41:22 +02:00
src = fetchPypi {
inherit pname version;
2019-07-20 10:52:02 +02:00
sha256 = "11067ab11d98b1e6c7f0993506f7a5f8a91af420f7e82be6575fcb7a6ca372a0";
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
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
'';
meta = {
description = "IPython: Productive Interactive Computing";
homepage = http://ipython.org/;
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ bjornfor fridh ];
2017-04-20 13:41:22 +02:00
};
}