git.iko.soy/typeable/nixpkgs
on master help sign in
pythonPackages.spyder-kernels: Convert to pytestCheckHook
commit0faf465099f17d7f4ee8e94c7707244e3f03f435 authorSandro Jäckel <sandro.jaeckel@gmail.com> dateWed 30 Dec 2020, 00:32 (6 years ago) parent2dbe0c2
1 file changed+27−28
pkgs/development/python-modules/spyder-kernels/0.x.nix+27−28
pkgs/development/python-modules/spyder-kernels/0.x.nix+27−28
@@ -1,20 +1,19 @@
1−{
2− lib
3− , buildPythonPackage
4− , fetchFromGitHub
5− , cloudpickle
6− , ipykernel
7− , wurlitzer
8− , jupyter_client
9− , pyzmq
10− , numpy
11− , pandas
12− , scipy
13− , matplotlib
14− , xarray
15− , pytest
16− , flaky
17− , isPy3k
1+{ lib
2+, buildPythonPackage
3+, fetchFromGitHub
4+, cloudpickle
5+, ipykernel
6+, wurlitzer
7+, jupyter_client
8+, pyzmq
9+, numpy
10+, pandas
11+, scipy
12+, matplotlib
13+, xarray
14+, pytestCheckHook
15+, flaky
16+, isPy3k
1817}:
1918
2019buildPythonPackage rec {
@@ -24,7 +23,7 @@ buildPythonPackage rec {
2423 src = fetchFromGitHub {
2524 owner = "spyder-ide";
2625 repo = "spyder-kernels";
27− rev = "v0.5.2";
26+ rev = "v${version}";
2827 sha256 = "1yan589g0470y61bcyjy3wj13i94ndyffckqdyrg97vw2qhfrisb";
2928 };
3029
@@ -45,23 +44,23 @@ buildPythonPackage rec {
4544 scipy
4645 matplotlib
4746 xarray
48− pytest
47+ pytestCheckHook
4948 flaky
5049 ];
5150
51+ preCheck = ''
52+ export JUPYTER_RUNTIME_DIR=$(mktemp -d)
53+ '';
54+
5255 # skipped tests:
5356 # turtle requires graphics
5457 # cython test fails, I don't think this can ever access cython?
5558 # umr pathlist test assumes standard directories, not compatible with nix
56− checkPhase = ''
57− export JUPYTER_RUNTIME_DIR=$(mktemp -d)
58− pytest -x -vv -k '\
59− not test_turtle_launch \
60− and not test_umr_skip_cython \
61− and not test_umr_pathlist' \
62− -W 'ignore::DeprecationWarning' \
63− spyder_kernels
64− '';
59+ disabledTests = [
60+ "test_turtle_launc"
61+ "test_umr_skip_cython"
62+ "test_umr_pathlist"
63+ ];
6564
6665 meta = with lib; {
6766 description = "Jupyter kernels for Spyder's console";