diff options
| author | Frederik Rietdijk <fridh@fridh.nl> | 2019-11-03 10:24:24 +0100 |
|---|---|---|
| committer | Frederik Rietdijk <fridh@fridh.nl> | 2019-11-03 10:24:24 +0100 |
| commit | 76b16d05e60bd29a06f7cc0721efdc7a56017bf2 (patch) | |
| tree | 3a331617b0d543be0824a6ecde039fc4206e5548 /pkgs/development/python-modules/ipython/5.nix | |
| parent | modemmanager: 1.10.4 -> 1.10.6 (diff) | |
| parent | Merge master into staging-next (diff) | |
| download | nixpkgs-76b16d05e60bd29a06f7cc0721efdc7a56017bf2.tar.gz | |
Merge staging-next into staging
Diffstat (limited to 'pkgs/development/python-modules/ipython/5.nix')
| -rw-r--r-- | pkgs/development/python-modules/ipython/5.nix | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/ipython/5.nix b/pkgs/development/python-modules/ipython/5.nix new file mode 100644 index 000000000000..15e7d00bcece --- /dev/null +++ b/pkgs/development/python-modules/ipython/5.nix @@ -0,0 +1,62 @@ +{ lib +, stdenv +, buildPythonPackage +, fetchPypi +# Build dependencies +, glibcLocales +# Test dependencies +, nose +, pygments +, testpath +, isPy27 +, mock +# Runtime dependencies +, backports_shutil_get_terminal_size +, decorator +, pathlib2 +, pickleshare +, requests +, simplegeneric +, traitlets +, prompt_toolkit +, pexpect +, appnope +}: + +buildPythonPackage rec { + pname = "ipython"; + version = "5.8.0"; + + src = fetchPypi { + inherit pname version; + sha256 = "4bac649857611baaaf76bc82c173aa542f7486446c335fe1a6c05d0d491c8906"; + }; + + 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 requests 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 orivej lnl7 ]; + }; +} |
