aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/development/python-modules/spyder-kernels/0.x.nix
blob: c4a61520333e92b08173818d728c325cfd02fd18 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
{ 
  lib
  , buildPythonPackage
  , fetchFromGitHub
  , cloudpickle
  , ipykernel
  , wurlitzer
  , jupyter_client
  , pyzmq 
  , numpy
  , pandas
  , scipy
  , matplotlib
  , xarray
  , pytest
  , flaky
  , isPy3k
}:

buildPythonPackage rec {
  pname = "spyder-kernels";
  version = "0.5.2";

  src = fetchFromGitHub {
    owner = "spyder-ide";
    repo = "spyder-kernels";
    rev = "v0.5.2";
    sha256 = "1yan589g0470y61bcyjy3wj13i94ndyffckqdyrg97vw2qhfrisb";
  };

  # requirement xarray not available on Py2k
  disabled = !isPy3k;

  propagatedBuildInputs = [
    cloudpickle
    ipykernel
    wurlitzer
    jupyter_client
    pyzmq
  ];

  checkInputs = [
    numpy
    pandas
    scipy
    matplotlib
    xarray
    pytest
    flaky
  ];

  # 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
  '';

  meta = with lib; {
    description = "Jupyter kernels for Spyder's console";
    homepage = "https://github.com/spyder-ide/spyder-kernels";
    license = licenses.mit;
    maintainers = with maintainers; [ gebner marcus7070 ];
  };
}