python3Packages.orange3: tweakings
Signed-off-by: lucasew <lucas59356@gmail.com>
This commit is contained in:
@@ -1,52 +1,58 @@
|
||||
{
|
||||
lib,
|
||||
gitUpdater,
|
||||
stdenv,
|
||||
baycomp,
|
||||
bottleneck,
|
||||
buildPythonPackage,
|
||||
chardet,
|
||||
fetchFromGitHub,
|
||||
|
||||
# build-system
|
||||
oldest-supported-numpy,
|
||||
setuptools,
|
||||
|
||||
# nativeBuildInputs
|
||||
copyDesktopItems,
|
||||
cython,
|
||||
qt5,
|
||||
recommonmark,
|
||||
sphinx,
|
||||
|
||||
# dependencies
|
||||
baycomp,
|
||||
bottleneck,
|
||||
catboost,
|
||||
xgboost,
|
||||
fetchFromGitHub,
|
||||
fetchurl,
|
||||
chardet,
|
||||
httpx,
|
||||
joblib,
|
||||
keyring,
|
||||
keyrings-alt,
|
||||
makeDesktopItem,
|
||||
matplotlib,
|
||||
numpy,
|
||||
oldest-supported-numpy,
|
||||
openpyxl,
|
||||
opentsne,
|
||||
orange-canvas-core,
|
||||
orange-widget-base,
|
||||
pandas,
|
||||
pytestCheckHook,
|
||||
pytest-qt,
|
||||
pyqtgraph,
|
||||
pyqt5,
|
||||
pyqtwebengine,
|
||||
python,
|
||||
python-louvain,
|
||||
pythonOlder,
|
||||
pyyaml,
|
||||
pip,
|
||||
qt5,
|
||||
pyqt5,
|
||||
pyqtgraph,
|
||||
pyqtwebengine,
|
||||
python-louvain,
|
||||
pyyaml,
|
||||
qtconsole,
|
||||
recommonmark,
|
||||
requests,
|
||||
scikit-learn,
|
||||
scipy,
|
||||
serverfiles,
|
||||
setuptools,
|
||||
sphinx,
|
||||
wheel,
|
||||
xgboost,
|
||||
xlrd,
|
||||
xlsxwriter,
|
||||
|
||||
makeDesktopItem,
|
||||
|
||||
# passthru
|
||||
gitUpdater,
|
||||
python,
|
||||
pytest-qt,
|
||||
pytestCheckHook,
|
||||
}:
|
||||
|
||||
let
|
||||
@@ -55,8 +61,6 @@ let
|
||||
version = "3.37.0";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "biolab";
|
||||
repo = "orange3";
|
||||
@@ -64,6 +68,11 @@ let
|
||||
hash = "sha256-3PybiHXH6oIYJb78/a7LnQA6cYUicDx4Mf65QhIhT4w=";
|
||||
};
|
||||
|
||||
build-system = [
|
||||
oldest-supported-numpy
|
||||
setuptools
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace-fail 'cython>=3.0' 'cython'
|
||||
@@ -74,50 +83,47 @@ let
|
||||
|
||||
nativeBuildInputs = [
|
||||
copyDesktopItems
|
||||
oldest-supported-numpy
|
||||
cython
|
||||
qt5.wrapQtAppsHook
|
||||
recommonmark
|
||||
setuptools
|
||||
sphinx
|
||||
wheel
|
||||
];
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
pythonRelaxDeps = [ "scikit-learn" ];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
numpy
|
||||
scipy
|
||||
chardet
|
||||
dependencies = [
|
||||
baycomp
|
||||
bottleneck
|
||||
catboost
|
||||
xgboost
|
||||
chardet
|
||||
httpx
|
||||
joblib
|
||||
keyring
|
||||
keyrings-alt
|
||||
matplotlib
|
||||
numpy
|
||||
openpyxl
|
||||
opentsne
|
||||
qtconsole
|
||||
setuptools
|
||||
bottleneck
|
||||
matplotlib
|
||||
joblib
|
||||
requests
|
||||
keyring
|
||||
scikit-learn
|
||||
pandas
|
||||
pyqtwebengine
|
||||
serverfiles
|
||||
orange-canvas-core
|
||||
orange-widget-base
|
||||
pandas
|
||||
pip
|
||||
pyqt5
|
||||
pyqtgraph
|
||||
pyqtwebengine
|
||||
python-louvain
|
||||
pyyaml
|
||||
qtconsole
|
||||
requests
|
||||
scikit-learn
|
||||
scipy
|
||||
serverfiles
|
||||
setuptools
|
||||
xgboost
|
||||
xlrd
|
||||
xlsxwriter
|
||||
httpx
|
||||
pyqtgraph
|
||||
pyqt5
|
||||
orange-widget-base
|
||||
keyrings-alt
|
||||
pyyaml
|
||||
baycomp
|
||||
pip
|
||||
];
|
||||
|
||||
# FIXME: ImportError: cannot import name '_variable' from partially initialized module 'Orange.data' (most likely due to a circular import) (/build/source/Orange/data/__init__.py)
|
||||
@@ -181,13 +187,13 @@ let
|
||||
chmod +w -R .
|
||||
|
||||
substituteInPlace Orange/classification/tests/test_xgb_cls.py \
|
||||
--replace test_learners mk_test_learners
|
||||
--replace-fail test_learners mk_test_learners
|
||||
|
||||
substituteInPlace Orange/modelling/tests/test_xgb.py \
|
||||
--replace test_learners mk_test_learners
|
||||
--replace-fail test_learners mk_test_learners
|
||||
|
||||
substituteInPlace Orange/**/tests/*.py \
|
||||
--replace test_filename filename_test
|
||||
--replace-fail test_filename filename_test
|
||||
|
||||
# TODO: debug why orange is crashing on GC, may be a upstream issue
|
||||
chmod +x Orange/__init__.py
|
||||
@@ -196,8 +202,8 @@ let
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
pytestCheckHook
|
||||
pytest-qt
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
postCheck = ''
|
||||
|
||||
Reference in New Issue
Block a user