aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/development/python-modules/ipykernel
diff options
context:
space:
mode:
authorKatharina Fey <kookie@spacekookie.de>2020-01-12 01:00:12 +0000
committerKatharina Fey <kookie@spacekookie.de>2020-01-12 01:00:12 +0000
commiteeaf5d25d5f6ae7ae1f5bf8a3dee4559693f8147 (patch)
treeafc41ca8dde96b41089ca324533084aef570322f /nixpkgs/pkgs/development/python-modules/ipykernel
parent63c4c4dda49dc69e5812faa7ef8406180998f3ae (diff)
parente4134747f5666bcab8680aff67fa3b63384f9a0f (diff)
Merge commit 'e4134747f5666bcab8680aff67fa3b63384f9a0f'
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/ipykernel')
-rw-r--r--nixpkgs/pkgs/development/python-modules/ipykernel/default.nix22
1 files changed, 15 insertions, 7 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/ipykernel/default.nix b/nixpkgs/pkgs/development/python-modules/ipykernel/default.nix
index 22a61281af2..5202483ab32 100644
--- a/nixpkgs/pkgs/development/python-modules/ipykernel/default.nix
+++ b/nixpkgs/pkgs/development/python-modules/ipykernel/default.nix
@@ -1,27 +1,28 @@
{ lib
+, stdenv
, buildPythonPackage
, fetchPypi
, fetchpatch
+, flaky
, ipython
, jupyter_client
, traitlets
, tornado
, pythonOlder
-, pytest
+, pytestCheckHook
, nose
}:
buildPythonPackage rec {
pname = "ipykernel";
- version = "5.1.2";
+ version = "5.1.3";
disabled = pythonOlder "3.4";
src = fetchPypi {
inherit pname version;
- sha256 = "04jx6ihj3zpj4c7acqa14gl37mpdnbgmfm4nvv97xkjc1cz920xm";
+ sha256 = "1a08y677lpn80qzvv7z0smgggmr5m5ayf0bs6vds47xpxl9sss5k";
};
- checkInputs = [ pytest nose ];
propagatedBuildInputs = [ ipython jupyter_client traitlets tornado ];
# https://github.com/ipython/ipykernel/pull/377
@@ -32,10 +33,17 @@ buildPythonPackage rec {
})
];
- # For failing tests, see https://github.com/ipython/ipykernel/issues/387
- checkPhase = ''
- HOME=$(mktemp -d) pytest ipykernel -k "not (test_sys_path or test_sys_path_profile_dir or test_complete)"
+ checkInputs = [ pytestCheckHook nose flaky ];
+ dontUseSetuptoolsCheck = true;
+ preCheck = ''
+ export HOME=$(mktemp -d)
'';
+ disabledTests = lib.optionals stdenv.isDarwin [
+ # see https://github.com/NixOS/nixpkgs/issues/76197
+ "test_subprocess_print"
+ "test_subprocess_error"
+ "test_ipython_start_kernel_no_userns"
+ ];
# Some of the tests use localhost networking.
__darwinAllowLocalNetworking = true;