-
-
Notifications
You must be signed in to change notification settings - Fork 12.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pythonPackages.ipython: support python2
Fixes #25234
- Loading branch information
Showing
3 changed files
with
72 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
{ lib | ||
, stdenv | ||
, buildPythonPackage | ||
, fetchPypi | ||
, pythonOlder | ||
# Build dependencies | ||
, glibcLocales | ||
# Test dependencies | ||
, nose | ||
, pygments | ||
, testpath | ||
, isPy27 | ||
, mock | ||
# Runtime dependencies | ||
, backports_shutil_get_terminal_size | ||
, jedi | ||
, decorator | ||
, pathlib2 | ||
, pickleshare | ||
, requests2 | ||
, simplegeneric | ||
, traitlets | ||
, prompt_toolkit | ||
, pexpect | ||
, appnope | ||
}: | ||
|
||
buildPythonPackage rec { | ||
pname = "ipython"; | ||
version = "5.3.0"; | ||
name = "${pname}-${version}"; | ||
|
||
src = fetchPypi { | ||
inherit pname version; | ||
sha256 = "bf5e615e7d96dac5a61fbf98d9e2926d98aa55582681bea7e9382992a3f43c1d"; | ||
}; | ||
|
||
prePatch = stdenv.lib.optionalString stdenv.isDarwin '' | ||
substituteInPlace setup.py --replace "'gnureadline'" " " | ||
''; | ||
|
||
buildInputs = [ glibcLocales ]; | ||
|
||
checkInputs = [ nose pygments testpath ] ++ lib.optional isPy27 mock; | ||
|
||
propagatedBuildInputs = [ | ||
backports_shutil_get_terminal_size decorator pickleshare prompt_toolkit | ||
simplegeneric traitlets requests2 pathlib2 pexpect | ||
] ++ 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 orivej lnl7 ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters