Merge pull request #252805 from fabaff/orange3-fix

python311Packages.orange3: adjust nativeBuildInputs
This commit is contained in:
Fabian Affolter
2023-09-01 18:40:43 +02:00
committed by GitHub

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,25 +23,32 @@
, 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
}: }:
let let
self = buildPythonPackage rec { self = buildPythonPackage rec {
pname = "orange3"; pname = "orange3";
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 @@ self = buildPythonPackage rec {
}; };
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 @@ self = buildPythonPackage rec {
nativeBuildInputs = [ nativeBuildInputs = [
copyDesktopItems copyDesktopItems
cython cython
oldest-supported-numpy
qt5.wrapQtAppsHook qt5.wrapQtAppsHook
recommonmark
setuptools
sphinx sphinx
wheel
]; ];
enableParallelBuilding = true; enableParallelBuilding = true;
@@ -153,12 +166,14 @@ self = buildPythonPackage rec {
}); });
}; };
meta = { meta = with lib; {
mainProgram = "orange-canvas";
description = "Data mining and visualization toolbox for novice and expert alike"; description = "Data mining and visualization toolbox for novice and expert alike";
homepage = "https://orangedatamining.com/"; homepage = "https://orangedatamining.com/";
license = [ lib.licenses.gpl3Plus ]; changelog = "https://github.com/biolab/orange3/blob/${version}/CHANGELOG.md";
maintainers = [ lib.maintainers.lucasew ]; license = with licenses; [ gpl3Plus ];
maintainers = with maintainers; [ lucasew ];
mainProgram = "orange-canvas";
}; };
}; };
in self in
self