2021-01-05 17:05:55 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cloudpickle
|
|
|
|
, ipykernel
|
|
|
|
, wurlitzer
|
|
|
|
, jupyter_client
|
|
|
|
, pyzmq
|
|
|
|
, numpy
|
|
|
|
, pandas
|
|
|
|
, scipy
|
|
|
|
, matplotlib
|
|
|
|
, xarray
|
|
|
|
, pytestCheckHook
|
|
|
|
, flaky
|
|
|
|
, isPy3k
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "spyder-kernels";
|
|
|
|
version = "0.5.2";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "spyder-ide";
|
|
|
|
repo = "spyder-kernels";
|
2021-01-05 17:05:55 +00:00
|
|
|
rev = "v${version}";
|
2020-04-24 23:36:52 +00:00
|
|
|
sha256 = "1yan589g0470y61bcyjy3wj13i94ndyffckqdyrg97vw2qhfrisb";
|
|
|
|
};
|
|
|
|
|
|
|
|
# requirement xarray not available on Py2k
|
|
|
|
disabled = !isPy3k;
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
cloudpickle
|
|
|
|
ipykernel
|
|
|
|
wurlitzer
|
|
|
|
jupyter_client
|
|
|
|
pyzmq
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
numpy
|
|
|
|
pandas
|
|
|
|
scipy
|
|
|
|
matplotlib
|
|
|
|
xarray
|
2021-01-05 17:05:55 +00:00
|
|
|
pytestCheckHook
|
2020-04-24 23:36:52 +00:00
|
|
|
flaky
|
|
|
|
];
|
|
|
|
|
2021-01-05 17:05:55 +00:00
|
|
|
preCheck = ''
|
|
|
|
export JUPYTER_RUNTIME_DIR=$(mktemp -d)
|
|
|
|
'';
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
# 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
|
2021-01-05 17:05:55 +00:00
|
|
|
disabledTests = [
|
|
|
|
"test_turtle_launc"
|
|
|
|
"test_umr_skip_cython"
|
|
|
|
"test_umr_pathlist"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|