From 85f5aa66bdd3366aca0d1d5e489a499409027e5c Mon Sep 17 00:00:00 2001
From: mio <miyopan@e.email>
Date: Wed, 6 Nov 2024 06:26:37 +0000
Subject: [PATCH] community/py3-scikit-learn: upgrade to 1.5.2

https://scikit-learn.org/stable/whats_new/v1.5.html
https://scikit-learn.org/stable/whats_new/v1.4.html

1.4.2 includes numpy 2.0 support. Also resolves compile errors with
cython 3.0.10.

```
[26/68] Cythonizing sklearn/linear_model/_cd_fast.pyx

Error compiling Cython file:
------------------------------------------------------------
...
    # particularly tiny on Windows/MSVC.
    # It corresponds to the maximum representable value for
    # 32-bit signed integers (i.e. 2^31 - 1).
    RAND_R_MAX = 2147483647

cpdef sample_without_replacement(cnp.int_t n_population,
                                 ^
------------------------------------------------------------

sklearn/utils/_random.pxd:19:33: 'int_t' is not a type identifier
```
---
 community/py3-scikit-learn/APKBUILD | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/community/py3-scikit-learn/APKBUILD b/community/py3-scikit-learn/APKBUILD
index f6ece57078d2..1f58fcc0932e 100644
--- a/community/py3-scikit-learn/APKBUILD
+++ b/community/py3-scikit-learn/APKBUILD
@@ -1,8 +1,8 @@
 # Contributor: Carlos Giraldo <cgiraldo@gradiant.org>
 # Maintainer: Carlos Giraldo <cgiraldo@gradiant.org>
 pkgname=py3-scikit-learn
-pkgver=1.3.2
-pkgrel=1
+pkgver=1.5.2
+pkgrel=0
 pkgdesc="a Python module for machine learning built on top of SciPy"
 url="https://scikit-learn.org/"
 arch="all"
@@ -18,14 +18,15 @@ depends="
 makedepends="
 	cython
 	py3-gpep517
+	py3-meson-python
 	py3-numpy-dev
 	py3-setuptools
 	py3-wheel
 	python3-dev
 	"
 subpackages="$pkgname-pyc"
-source="https://files.pythonhosted.org/packages/source/s/scikit-learn/scikit-learn-$pkgver.tar.gz"
-builddir="$srcdir/scikit-learn-$pkgver"
+source="https://files.pythonhosted.org/packages/source/s/scikit-learn/scikit_learn-$pkgver.tar.gz"
+builddir="$srcdir/scikit_learn-$pkgver"
 
 case "$CARCH" in
 aarch64)
@@ -48,5 +49,5 @@ package() {
 }
 
 sha512sums="
-fa48267c3e1784c52a72c40bb0bc6e39fcd9b7d9a80b889d0fa02153c6473a79fe4e51266d56b504bf01179d8a5af4216b29d9008a532afbe133e7eac79cd336  scikit-learn-1.3.2.tar.gz
+f8e31c733d435e0fb879ae84f253ef036a1586516814350ac752e2133b4ef958e9ae3f3e2b9fd38759bae543a8c767653370f49785014bb47b9767c84cc247bd  scikit_learn-1.5.2.tar.gz
 "
-- 
GitLab