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 { lib
, buildPythonPackage
, copyDesktopItems
, fetchurl
, makeDesktopItem
, fetchFromGitHub
, nix-update-script
, python
, baycomp , baycomp
, bottleneck , bottleneck
, buildPythonPackage
, chardet , chardet
, copyDesktopItems
, cython , cython
, fetchFromGitHub
, fetchurl
, httpx , httpx
, joblib , joblib
, keyring , keyring
, keyrings-alt , keyrings-alt
, makeDesktopItem
, matplotlib , matplotlib
, nix-update-script
, numpy , numpy
, oldest-supported-numpy
, openpyxl , openpyxl
, opentsne , opentsne
, orange-canvas-core , orange-canvas-core
@@ -23,15 +23,20 @@
, pandas , pandas
, pyqtgraph , pyqtgraph
, pyqtwebengine , pyqtwebengine
, python
, python-louvain , python-louvain
, pythonOlder
, pyyaml , pyyaml
, qt5 , qt5
, qtconsole , qtconsole
, recommonmark
, requests , requests
, scikit-learn , scikit-learn
, scipy , scipy
, sphinx
, serverfiles , serverfiles
, setuptools
, sphinx
, wheel
, xlrd , xlrd
, xlsxwriter , xlsxwriter
}: }:
@@ -42,6 +47,8 @@ let
version = "3.35.0"; version = "3.35.0";
format = "pyproject"; format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "biolab"; owner = "biolab";
repo = "orange3"; repo = "orange3";
@@ -50,6 +57,8 @@ let
}; };
postPatch = '' 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;\(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 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 = [ nativeBuildInputs = [
copyDesktopItems copyDesktopItems
cython cython
oldest-supported-numpy
qt5.wrapQtAppsHook qt5.wrapQtAppsHook
recommonmark
setuptools
sphinx sphinx
wheel
]; ];
enableParallelBuilding = true; enableParallelBuilding = true;