aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/development/python-modules/notebook/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/notebook/default.nix')
-rw-r--r--nixpkgs/pkgs/development/python-modules/notebook/default.nix32
1 files changed, 18 insertions, 14 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/notebook/default.nix b/nixpkgs/pkgs/development/python-modules/notebook/default.nix
index 4550bb63631..7ac4bc5fdbe 100644
--- a/nixpkgs/pkgs/development/python-modules/notebook/default.nix
+++ b/nixpkgs/pkgs/development/python-modules/notebook/default.nix
@@ -2,6 +2,7 @@
, lib
, buildPythonPackage
, fetchPypi
+, argon2_cffi
, nose
, nose_warnings_filters
, glibcLocales
@@ -11,6 +12,7 @@
, tornado
, ipython_genutils
, traitlets
+, jupyter
, jupyter_core
, jupyter_client
, nbformat
@@ -21,27 +23,28 @@
, send2trash
, pexpect
, prometheus_client
+, pytestCheckHook
}:
buildPythonPackage rec {
pname = "notebook";
- version = "6.0.3";
+ version = "6.1.3";
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
- sha256 = "47a9092975c9e7965ada00b9a20f0cf637d001db60d241d479f53c0be117ad48";
+ sha256 = "9990d51b9931a31e681635899aeb198b4c4b41586a9e87fbfaaed1a71d0a05b6";
};
LC_ALL = "en_US.utf8";
- checkInputs = [ nose glibcLocales ]
+ checkInputs = [ nose pytestCheckHook glibcLocales ]
++ (if isPy3k then [ nose_warnings_filters ] else [ mock ]);
propagatedBuildInputs = [
jinja2 tornado ipython_genutils traitlets jupyter_core send2trash
jupyter_client nbformat nbconvert ipykernel terminado requests pexpect
- prometheus_client
+ prometheus_client argon2_cffi
];
# disable warning_filters
@@ -52,18 +55,19 @@ buildPythonPackage rec {
postPatch = ''
# Remove selenium tests
rm -rf notebook/tests/selenium
-
+ export HOME=$TMPDIR
'';
- checkPhase = ''
- runHook preCheck
- mkdir tmp
- HOME=tmp nosetests -v ${if (stdenv.isDarwin) then ''
- --exclude test_delete \
- --exclude test_checkpoints_follow_file
- ''
- else ""}
- '';
+ disabledTests = [
+ # a "system_config" is generated, and fails many tests
+ "config"
+ "load_ordered"
+ # requires jupyter, but will cause circular imports
+ "test_run"
+ "TestInstallServerExtension"
+ "launch_socket"
+ "sock_server"
+ ];
# Some of the tests use localhost networking.
__darwinAllowLocalNetworking = true;