mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-25 17:55:21 +00:00
Merge pull request #127846 from dotlambda/spyder_3-drop
This commit is contained in:
@@ -1,72 +0,0 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, cloudpickle
|
||||
, ipykernel
|
||||
, wurlitzer
|
||||
, jupyter_client
|
||||
, pyzmq
|
||||
, numpy
|
||||
, pandas
|
||||
, scipy
|
||||
, matplotlib
|
||||
, xarray
|
||||
, pytestCheckHook
|
||||
, flaky
|
||||
, isPy3k
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "spyder-kernels";
|
||||
version = "0.5.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "spyder-ide";
|
||||
repo = "spyder-kernels";
|
||||
rev = "v${version}";
|
||||
sha256 = "1yan589g0470y61bcyjy3wj13i94ndyffckqdyrg97vw2qhfrisb";
|
||||
};
|
||||
|
||||
# requirement xarray not available on Py2k
|
||||
disabled = !isPy3k;
|
||||
|
||||
propagatedBuildInputs = [
|
||||
cloudpickle
|
||||
ipykernel
|
||||
wurlitzer
|
||||
jupyter_client
|
||||
pyzmq
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
numpy
|
||||
pandas
|
||||
scipy
|
||||
matplotlib
|
||||
xarray
|
||||
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
|
||||
disabledTests = [
|
||||
"test_turtle_launc"
|
||||
"test_umr_skip_cython"
|
||||
"test_umr_pathlist"
|
||||
"test_user_sitepackages_in_pathlist"
|
||||
];
|
||||
|
||||
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 ];
|
||||
};
|
||||
}
|
||||
@@ -1,48 +0,0 @@
|
||||
{ lib, buildPythonPackage, fetchFromGitHub, jedi, pycodestyle,
|
||||
psutil, pyflakes, rope, pylint, keyring, numpydoc,
|
||||
qtconsole, qtawesome, nbconvert, mccabe, pyopengl, cloudpickle, pygments,
|
||||
spyder-kernels_0_5, qtpy, pyzmq, chardet, pyqtwebengine
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "spyder";
|
||||
version = "3.3.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "spyder-ide";
|
||||
repo = "spyder";
|
||||
rev = "v3.3.6";
|
||||
sha256 = "1sk9xajhzpklk5bcbdhpfhx3gxhyrahsmj9bv2m6kvbqxdlx6bq6";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
jedi pycodestyle psutil pyflakes rope pylint keyring numpydoc
|
||||
qtconsole qtawesome nbconvert mccabe pyopengl cloudpickle spyder-kernels_0_5
|
||||
pygments qtpy pyzmq chardet pyqtwebengine
|
||||
];
|
||||
|
||||
# tests fail with a segfault
|
||||
doCheck = false;
|
||||
|
||||
postPatch = ''
|
||||
# remove dependency on pyqtwebengine
|
||||
# this is still part of the pyqt 5.13 version we have in nixpkgs
|
||||
sed -i /pyqtwebengine/d setup.py
|
||||
substituteInPlace setup.py --replace "pyqt5<5.13" "pyqt5"
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [ "spyder" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Library providing a scientific python development environment";
|
||||
longDescription = ''
|
||||
Spyder (previously known as Pydee) is a powerful interactive development
|
||||
environment for the Python language with advanced editing, interactive
|
||||
testing, debugging and introspection features.
|
||||
'';
|
||||
homepage = "https://github.com/spyder-ide/spyder/";
|
||||
license = licenses.mit;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ gebner marcus7070 ];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user