pythonPackages.spyder-kernels: Convert to pytestCheckHook
This commit is contained in:
parent
2dbe0c21c4
commit
0faf465099
|
@ -1,20 +1,19 @@
|
||||||
{
|
{ lib
|
||||||
lib
|
, buildPythonPackage
|
||||||
, buildPythonPackage
|
, fetchFromGitHub
|
||||||
, fetchFromGitHub
|
, cloudpickle
|
||||||
, cloudpickle
|
, ipykernel
|
||||||
, ipykernel
|
, wurlitzer
|
||||||
, wurlitzer
|
, jupyter_client
|
||||||
, jupyter_client
|
, pyzmq
|
||||||
, pyzmq
|
, numpy
|
||||||
, numpy
|
, pandas
|
||||||
, pandas
|
, scipy
|
||||||
, scipy
|
, matplotlib
|
||||||
, matplotlib
|
, xarray
|
||||||
, xarray
|
, pytestCheckHook
|
||||||
, pytest
|
, flaky
|
||||||
, flaky
|
, isPy3k
|
||||||
, isPy3k
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
|
@ -24,7 +23,7 @@ buildPythonPackage rec {
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "spyder-ide";
|
owner = "spyder-ide";
|
||||||
repo = "spyder-kernels";
|
repo = "spyder-kernels";
|
||||||
rev = "v0.5.2";
|
rev = "v${version}";
|
||||||
sha256 = "1yan589g0470y61bcyjy3wj13i94ndyffckqdyrg97vw2qhfrisb";
|
sha256 = "1yan589g0470y61bcyjy3wj13i94ndyffckqdyrg97vw2qhfrisb";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -45,23 +44,23 @@ buildPythonPackage rec {
|
||||||
scipy
|
scipy
|
||||||
matplotlib
|
matplotlib
|
||||||
xarray
|
xarray
|
||||||
pytest
|
pytestCheckHook
|
||||||
flaky
|
flaky
|
||||||
];
|
];
|
||||||
|
|
||||||
|
preCheck = ''
|
||||||
|
export JUPYTER_RUNTIME_DIR=$(mktemp -d)
|
||||||
|
'';
|
||||||
|
|
||||||
# skipped tests:
|
# skipped tests:
|
||||||
# turtle requires graphics
|
# turtle requires graphics
|
||||||
# cython test fails, I don't think this can ever access cython?
|
# cython test fails, I don't think this can ever access cython?
|
||||||
# umr pathlist test assumes standard directories, not compatible with nix
|
# umr pathlist test assumes standard directories, not compatible with nix
|
||||||
checkPhase = ''
|
disabledTests = [
|
||||||
export JUPYTER_RUNTIME_DIR=$(mktemp -d)
|
"test_turtle_launc"
|
||||||
pytest -x -vv -k '\
|
"test_umr_skip_cython"
|
||||||
not test_turtle_launch \
|
"test_umr_pathlist"
|
||||||
and not test_umr_skip_cython \
|
];
|
||||||
and not test_umr_pathlist' \
|
|
||||||
-W 'ignore::DeprecationWarning' \
|
|
||||||
spyder_kernels
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Jupyter kernels for Spyder's console";
|
description = "Jupyter kernels for Spyder's console";
|
||||||
|
|
Loading…
Reference in a new issue