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