about summary refs log tree commit diff
path: root/pkgs/development/python-modules/ipython
diff options
context:
space:
mode:
authorFrederik Rietdijk <fridh@fridh.nl>2017-04-20 13:41:22 +0200
committerFrederik Rietdijk <fridh@fridh.nl>2017-04-20 13:41:22 +0200
commit60eaa476abd8639468c222380d32e52bc4eb4607 (patch)
treec71ad0a3fac1382559986ebb84ceae0cd02698bb /pkgs/development/python-modules/ipython
parentfc3fc9110a6d5bdf5beda1cfe940bab8d14d3b84 (diff)
downloadnixlib-60eaa476abd8639468c222380d32e52bc4eb4607.tar
nixlib-60eaa476abd8639468c222380d32e52bc4eb4607.tar.gz
nixlib-60eaa476abd8639468c222380d32e52bc4eb4607.tar.bz2
nixlib-60eaa476abd8639468c222380d32e52bc4eb4607.tar.lz
nixlib-60eaa476abd8639468c222380d32e52bc4eb4607.tar.xz
nixlib-60eaa476abd8639468c222380d32e52bc4eb4607.tar.zst
nixlib-60eaa476abd8639468c222380d32e52bc4eb4607.zip
pythonPackages.ipython: 5.3.0 -> 6.0.0
Diffstat (limited to 'pkgs/development/python-modules/ipython')
-rw-r--r--pkgs/development/python-modules/ipython/default.nix71
1 files changed, 71 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/ipython/default.nix b/pkgs/development/python-modules/ipython/default.nix
new file mode 100644
index 000000000000..0823a76e2a69
--- /dev/null
+++ b/pkgs/development/python-modules/ipython/default.nix
@@ -0,0 +1,71 @@
+{ lib
+, stdenv
+, buildPythonPackage
+, fetchPypi
+, pythonOlder
+# Build dependencies
+, glibcLocales
+# Test dependencies
+, nose
+, pygments
+, isPy27
+, mock
+# Runtime dependencies
+, jedi
+, decorator
+, pickleshare
+, simplegeneric
+, traitlets
+, prompt_toolkit
+, pexpect
+, appnope
+}:
+
+buildPythonPackage rec {
+  pname = "ipython";
+  version = "6.0.0";
+  name = "${pname}-${version}";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "f429b82b8d9807068da734b15965768bd21b15d0b706340b6d1b4d6f6f5b98a4";
+  };
+
+  prePatch = lib.optionalString stdenv.isDarwin ''
+    substituteInPlace setup.py --replace "'gnureadline'" " "
+  '';
+
+  buildInputs = [ glibcLocales ];
+
+  checkInputs = [ nose pygments ] ++ lib.optional isPy27 mock;
+
+  propagatedBuildInputs = [
+    jedi
+    decorator
+    pickleshare
+    simplegeneric
+    traitlets
+    prompt_toolkit
+    pexpect
+  ] ++ lib.optionals stdenv.isDarwin [appnope];
+
+  LC_ALL="en_US.UTF-8";
+
+  doCheck = false; # Circular dependency with ipykernel
+
+  checkPhase = ''
+    nosetests
+  '';
+
+  # IPython 6.0.0 and above does not support Python < 3.3.
+  # The last IPython version to support older Python versions
+  # is 5.3.x.
+  disabled = pythonOlder "3.3";
+
+  meta = {
+    description = "IPython: Productive Interactive Computing";
+    homepage = http://ipython.org/;
+    license = lib.licenses.bsd3;
+    maintainers = with lib.maintainers; [ bjornfor jgeerds fridh ];
+  };
+}