python311Packages.orange3: adjust nativeBuildInputs

This commit is contained in:
Fabian Affolter 2023-09-01 17:41:17 +02:00
parent c0a742d35a
commit 710f09dc96

View File

@ -1,21 +1,21 @@
{ lib
, buildPythonPackage
, copyDesktopItems
, fetchurl
, makeDesktopItem
, fetchFromGitHub
, nix-update-script
, python
, baycomp
, bottleneck
, buildPythonPackage
, chardet
, copyDesktopItems
, cython
, fetchFromGitHub
, fetchurl
, httpx
, joblib
, keyring
, keyrings-alt
, makeDesktopItem
, matplotlib
, nix-update-script
, numpy
, oldest-supported-numpy
, openpyxl
, opentsne
, orange-canvas-core
@ -23,15 +23,20 @@
, pandas
, pyqtgraph
, pyqtwebengine
, python
, python-louvain
, pythonOlder
, pyyaml
, qt5
, qtconsole
, recommonmark
, requests
, scikit-learn
, scipy
, sphinx
, serverfiles
, setuptools
, sphinx
, wheel
, xlrd
, xlsxwriter
}:
@ -42,6 +47,8 @@ let
version = "3.35.0";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "biolab";
repo = "orange3";
@ -50,6 +57,8 @@ let
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace "setuptools>=41.0.0,<50.0" "setuptools"
sed -i 's;\(scikit-learn\)[^$]*;\1;g' requirements-core.txt
sed -i 's;pyqtgraph[^$]*;;g' requirements-gui.txt # TODO: remove after bump with a version greater than 0.13.1
'';
@ -57,8 +66,12 @@ let
nativeBuildInputs = [
copyDesktopItems
cython
oldest-supported-numpy
qt5.wrapQtAppsHook
recommonmark
setuptools
sphinx
wheel
];
enableParallelBuilding = true;