Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
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 18}: 19 20buildPythonPackage rec { 21 pname = "spyder-kernels"; 22 version = "0.5.2"; 23 24 src = fetchFromGitHub { 25 owner = "spyder-ide"; 26 repo = "spyder-kernels"; 27 rev = "v0.5.2"; 28 sha256 = "1yan589g0470y61bcyjy3wj13i94ndyffckqdyrg97vw2qhfrisb"; 29 }; 30 31 # requirement xarray not available on Py2k 32 disabled = !isPy3k; 33 34 propagatedBuildInputs = [ 35 cloudpickle 36 ipykernel 37 wurlitzer 38 jupyter_client 39 pyzmq 40 ]; 41 42 checkInputs = [ 43 numpy 44 pandas 45 scipy 46 matplotlib 47 xarray 48 pytest 49 flaky 50 ]; 51 52 # skipped tests: 53 # turtle requires graphics 54 # cython test fails, I don't think this can ever access cython? 55 # 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 ''; 65 66 meta = with lib; { 67 description = "Jupyter kernels for Spyder's console"; 68 homepage = "https://github.com/spyder-ide/spyder-kernels"; 69 license = licenses.mit; 70 maintainers = with maintainers; [ gebner marcus7070 ]; 71 }; 72}