python3Packages.ipykernel: use pytestCheckHook, enable all tests
All tests pass on NixOS. Some still fail on Darwin, but it's a different issue.
This commit is contained in:
parent
eda01862c4
commit
afacb9d06b
@ -7,7 +7,7 @@
|
|||||||
, traitlets
|
, traitlets
|
||||||
, tornado
|
, tornado
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
, pytest
|
, pytestCheckHook
|
||||||
, nose
|
, nose
|
||||||
}:
|
}:
|
||||||
|
|
||||||
@ -21,7 +21,6 @@ buildPythonPackage rec {
|
|||||||
sha256 = "04jx6ihj3zpj4c7acqa14gl37mpdnbgmfm4nvv97xkjc1cz920xm";
|
sha256 = "04jx6ihj3zpj4c7acqa14gl37mpdnbgmfm4nvv97xkjc1cz920xm";
|
||||||
};
|
};
|
||||||
|
|
||||||
checkInputs = [ pytest nose ];
|
|
||||||
propagatedBuildInputs = [ ipython jupyter_client traitlets tornado ];
|
propagatedBuildInputs = [ ipython jupyter_client traitlets tornado ];
|
||||||
|
|
||||||
# https://github.com/ipython/ipykernel/pull/377
|
# https://github.com/ipython/ipykernel/pull/377
|
||||||
@ -32,9 +31,10 @@ buildPythonPackage rec {
|
|||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
# For failing tests, see https://github.com/ipython/ipykernel/issues/387
|
checkInputs = [ pytestCheckHook nose ];
|
||||||
checkPhase = ''
|
dontUseSetuptoolsCheck = true;
|
||||||
HOME=$(mktemp -d) pytest ipykernel -k "not (test_sys_path or test_sys_path_profile_dir or test_complete)"
|
preCheck = ''
|
||||||
|
export HOME=$(mktemp -d)
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# Some of the tests use localhost networking.
|
# Some of the tests use localhost networking.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user