aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/development/python-modules/ipython
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/ipython')
-rw-r--r--nixpkgs/pkgs/development/python-modules/ipython/5.nix10
1 files changed, 10 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/ipython/5.nix b/nixpkgs/pkgs/development/python-modules/ipython/5.nix
index 15e7d00bcec..dd0c97fc3c5 100644
--- a/nixpkgs/pkgs/development/python-modules/ipython/5.nix
+++ b/nixpkgs/pkgs/development/python-modules/ipython/5.nix
@@ -2,6 +2,7 @@
, stdenv
, buildPythonPackage
, fetchPypi
+, fetchpatch
# Build dependencies
, glibcLocales
# Test dependencies
@@ -36,6 +37,15 @@ buildPythonPackage rec {
substituteInPlace setup.py --replace "'gnureadline'" " "
'';
+ patches = [
+ # Use the proper pygments lexer for python2 (https://github.com/ipython/ipython/pull/12095)
+ (fetchpatch {
+ name = "python2-lexer.patch";
+ url = "https://github.com/ipython/ipython/pull/12095/commits/8805293b5e4bce9150cc2ad9c5d6d984849ae447.patch";
+ sha256 = "16p4gl7a49v76w33j39ih7yspy6x2d14p9bh4wdpg9cafhw9nbc0";
+ })
+ ];
+
buildInputs = [ glibcLocales ];
checkInputs = [ nose pygments testpath ] ++ lib.optional isPy27 mock;