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

71 lines
1.2 KiB
Nix
Raw Normal View History

2017-04-20 12:41:22 +01: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 19:09:22 +01:00
, backcall
, fetchpatch
2017-04-20 12:41:22 +01:00
}:
buildPythonPackage rec {
pname = "ipython";
version = "7.19.0";
disabled = pythonOlder "3.7";
2017-04-20 12:41:22 +01:00
src = fetchPypi {
inherit pname version;
sha256 = "cbb2ef3d5961d44e6a963b9817d4ea4e1fa2eb589c371a470fed14d8d40cbd6a";
2017-04-20 12:41:22 +01:00
};
prePatch = lib.optionalString stdenv.isDarwin ''
substituteInPlace setup.py --replace "'gnureadline'" " "
'';
buildInputs = [ glibcLocales ];
checkInputs = [ nose pygments ];
2017-04-20 12:41:22 +01:00
propagatedBuildInputs = [
jedi
decorator
pickleshare
traitlets
prompt_toolkit
pygments
2017-04-20 12:41:22 +01:00
pexpect
2018-04-04 19:09:22 +01:00
backcall
] ++ lib.optionals stdenv.isDarwin [appnope];
2017-04-20 12:41:22 +01:00
LC_ALL="en_US.UTF-8";
doCheck = false; # Circular dependency with ipykernel
checkPhase = ''
nosetests
'';
pythonImportsCheck = [
"IPython"
];
meta = with lib; {
2017-04-20 12:41:22 +01:00
description = "IPython: Productive Interactive Computing";
homepage = "http://ipython.org/";
license = licenses.bsd3;
maintainers = with maintainers; [ bjornfor fridh ];
2017-04-20 12:41:22 +01:00
};
}