Files
nixpkgs/pkgs/development/python-modules/ipykernel/default.nix
T

62 lines
1.5 KiB
Nix
Raw Normal View History

2017-04-18 10:36:37 +02:00
{ lib
, stdenv
2017-04-18 10:36:37 +02:00
, buildPythonPackage
, fetchPypi
2019-12-20 23:58:02 -08:00
, flaky
2017-04-18 10:36:37 +02:00
, ipython
, jupyter_client
, traitlets
, tornado
2018-11-03 22:11:11 -04:00
, pythonOlder
, pytestCheckHook
2018-11-03 22:11:11 -04:00
, nose
2017-04-18 10:36:37 +02:00
}:
buildPythonPackage rec {
pname = "ipykernel";
2021-03-06 16:47:56 +01:00
version = "5.5.0";
2017-04-18 10:36:37 +02:00
src = fetchPypi {
inherit pname version;
2021-03-06 16:47:56 +01:00
sha256 = "98321abefdf0505fb3dc7601f60fc4087364d394bd8fad53107eb1adee9ff475";
2017-04-18 10:36:37 +02:00
};
2018-11-03 22:11:11 -04:00
propagatedBuildInputs = [ ipython jupyter_client traitlets tornado ];
2017-04-18 10:36:37 +02:00
2020-01-04 12:00:00 -05:00
checkInputs = [ pytestCheckHook nose flaky ];
dontUseSetuptoolsCheck = true;
preCheck = ''
export HOME=$(mktemp -d)
2018-11-03 22:11:11 -04:00
'';
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"
2020-08-25 12:07:09 +10:00
# https://github.com/ipython/ipykernel/issues/506
2020-08-25 12:07:09 +10:00
"test_unc_paths"
] ++ lib.optionals (pythonOlder "3.8") [
# flaky test https://github.com/ipython/ipykernel/issues/485
"test_shutdown"
# test regression https://github.com/ipython/ipykernel/issues/486
"test_sys_path_profile_dir"
"test_save_history"
"test_help_output"
"test_write_kernel_spec"
"test_ipython_start_kernel_userns"
"ZMQDisplayPublisherTests"
]);
2017-04-18 10:36:37 +02:00
2019-09-14 21:19:09 +02:00
# Some of the tests use localhost networking.
__darwinAllowLocalNetworking = true;
2017-04-18 10:36:37 +02:00
meta = {
description = "IPython Kernel for Jupyter";
homepage = "http://ipython.org/";
2017-04-18 10:36:37 +02:00
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ fridh ];
};
2018-11-03 22:11:11 -04:00
}