summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/ipython
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/ipython')
-rw-r--r--pkgs/development/python-modules/ipython/default.nix124
1 files changed, 62 insertions, 62 deletions
diff --git a/pkgs/development/python-modules/ipython/default.nix b/pkgs/development/python-modules/ipython/default.nix
index d9d7fda28c99..56feb411fe95 100644
--- a/pkgs/development/python-modules/ipython/default.nix
+++ b/pkgs/development/python-modules/ipython/default.nix
@@ -1,42 +1,43 @@
-{ lib
-, stdenv
-, buildPythonPackage
-, fetchPypi
-, pythonOlder
+{
+ lib,
+ stdenv,
+ buildPythonPackage,
+ fetchPypi,
+ pythonOlder,
-# Build dependencies
-, setuptools
+ # Build dependencies
+ setuptools,
-# Runtime dependencies
-, decorator
-, exceptiongroup
-, jedi
-, matplotlib-inline
-, pexpect
-, prompt-toolkit
-, pygments
-, stack-data
-, traitlets
-, typing-extensions
+ # Runtime dependencies
+ decorator,
+ exceptiongroup,
+ jedi,
+ matplotlib-inline,
+ pexpect,
+ prompt-toolkit,
+ pygments,
+ stack-data,
+ traitlets,
+ typing-extensions,
-# Optional dependencies
-, ipykernel
-, ipyparallel
-, ipywidgets
-, matplotlib
-, nbconvert
-, nbformat
-, notebook
-, qtconsole
+ # Optional dependencies
+ ipykernel,
+ ipyparallel,
+ ipywidgets,
+ matplotlib,
+ nbconvert,
+ nbformat,
+ notebook,
+ qtconsole,
-# Reverse dependency
-, sage
+ # Reverse dependency
+ sage,
-# Test dependencies
-, pickleshare
-, pytest-asyncio
-, pytest7CheckHook
-, testpath
+ # Test dependencies
+ pickleshare,
+ pytest-asyncio,
+ pytest7CheckHook,
+ testpath,
}:
buildPythonPackage rec {
@@ -50,24 +51,21 @@ buildPythonPackage rec {
hash = "sha256-AQ2z+KcopXi7ZB/dBsBjufuOlqlGTGOuxjEPvLXoBQE=";
};
- build-system = [
- setuptools
- ];
+ build-system = [ setuptools ];
- dependencies = [
- decorator
- jedi
- matplotlib-inline
- pexpect
- prompt-toolkit
- pygments
- stack-data
- traitlets
- ] ++ lib.optionals (pythonOlder "3.11") [
- exceptiongroup
- ] ++ lib.optionals (pythonOlder "3.12") [
- typing-extensions
- ];
+ dependencies =
+ [
+ decorator
+ jedi
+ matplotlib-inline
+ pexpect
+ prompt-toolkit
+ pygments
+ stack-data
+ traitlets
+ ]
+ ++ lib.optionals (pythonOlder "3.11") [ exceptiongroup ]
+ ++ lib.optionals (pythonOlder "3.12") [ typing-extensions ];
optional-dependencies = {
kernel = [ ipykernel ];
@@ -82,9 +80,7 @@ buildPythonPackage rec {
matplotlib = [ matplotlib ];
};
- pythonImportsCheck = [
- "IPython"
- ];
+ pythonImportsCheck = [ "IPython" ];
preCheck = ''
export HOME=$TMPDIR
@@ -101,15 +97,19 @@ buildPythonPackage rec {
testpath
];
- disabledTests = [
- # UnboundLocalError: local variable 'child' referenced before assignment
- "test_system_interrupt"
- ] ++ lib.optionals (stdenv.isDarwin) [
- # FileNotFoundError: [Errno 2] No such file or directory: 'pbpaste'
- "test_clipboard_get"
- ];
+ disabledTests =
+ [
+ # UnboundLocalError: local variable 'child' referenced before assignment
+ "test_system_interrupt"
+ ]
+ ++ lib.optionals (stdenv.isDarwin) [
+ # FileNotFoundError: [Errno 2] No such file or directory: 'pbpaste'
+ "test_clipboard_get"
+ ];
- passthru.tests = { inherit sage; };
+ passthru.tests = {
+ inherit sage;
+ };
meta = with lib; {
description = "IPython: Productive Interactive Computing";