GNU bug report logs - #68533
[PATCH] gnu: python-scikit-learn-extra: Update to 0.3.0-0f95d8d.

Previous Next

Package: guix-patches;

Reported by: Greg Hogan <code <at> greghogan.com>

Date: Wed, 17 Jan 2024 16:03:01 UTC

Severity: normal

Tags: patch

Done: Greg Hogan <code <at> greghogan.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 68533 in the body.
You can then email your comments to 68533 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#68533; Package guix-patches. (Wed, 17 Jan 2024 16:03:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Greg Hogan <code <at> greghogan.com>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Wed, 17 Jan 2024 16:03:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Greg Hogan <code <at> greghogan.com>
To: guix-patches <at> gnu.org
Cc: Greg Hogan <code <at> greghogan.com>
Subject: [PATCH] gnu: python-scikit-learn-extra: Update to 0.3.0-0f95d8d.
Date: Wed, 17 Jan 2024 16:02:19 +0000
Includes patch from upstream to fix test error building against recently
updated sklearn to 1.3 as described in
https://github.com/scikit-learn-contrib/scikit-learn-extra/issues/171

* gnu/packages/machine-learning.scm (python-scikit-learn-extra): Update
to 0.3.0-0f95d8d.

Change-Id: Ie5137497484dc18f3815bddb2299bcbd4e11b1e9
---
 gnu/packages/machine-learning.scm | 88 ++++++++++++++++---------------
 1 file changed, 45 insertions(+), 43 deletions(-)

diff --git a/gnu/packages/machine-learning.scm b/gnu/packages/machine-learning.scm
index 1540018347..5b0445a6b9 100644
--- a/gnu/packages/machine-learning.scm
+++ b/gnu/packages/machine-learning.scm
@@ -1670,52 +1670,54 @@ (define-public python-scikit-learn
     (license license:bsd-3)))
 
 (define-public python-scikit-learn-extra
-  (package
-    (name "python-scikit-learn-extra")
-    (version "0.3.0")
-    (source
-     (origin
-       (method git-fetch)
-       (uri (git-reference
-             (url "https://github.com/scikit-learn-contrib/scikit-learn-extra")
-             (commit (string-append "v" version))))
-       (file-name (git-file-name name version))
-       (sha256
-        (base32 "0yy6ka94ss88f3r7b6mpjf1l8lnv7aabhsg844pigfj8lfiv0wvl"))))
-    (build-system pyproject-build-system)
-    (arguments
-     (list #:phases
-           #~(modify-phases %standard-phases
-               (add-after 'build 'build-ext
-                 (lambda _
-                   (invoke "python" "setup.py" "build_ext"
-                           "--inplace")))
-               (replace 'check
-                 (lambda* (#:key tests? #:allow-other-keys)
-                   (when tests?
-                     ;; Restrict OpenBLAS threads to prevent segfaults while testing!
-                     (setenv "OPENBLAS_NUM_THREADS" "1")
-
-                     ;; Some tests require write access to $HOME.
-                     (setenv "HOME" "/tmp")
-
-                     ;; Step out of the source directory to avoid interference;
-                     ;; we want to run the installed code with extensions etc.
-                     (with-directory-excursion "/tmp"
-                       (invoke "pytest" "-vv" "--pyargs"
-                               "sklearn_extra"
-                               ;; ignore tests that require network
-                               "-k" "not test_build"))))))))
-    (propagated-inputs (list python-numpy python-scikit-learn python-scipy))
-    (native-inputs (list python-pytest python-pytest-cov python-cython))
-    (home-page "https://github.com/scikit-learn-contrib/scikit-learn-extra")
-    (synopsis "Set of tools for scikit-learn")
-    (description
-     "This package provides a Python module for machine learning that extends
+  (let* ((commit "0f95d8dda4c69f9de4fb002366041adcb1302f3b")
+         (revision "0"))
+    (package
+      (name "python-scikit-learn-extra")
+      (version (git-version "0.3.0" revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url "https://github.com/scikit-learn-contrib/scikit-learn-extra")
+               (commit commit)))
+         (file-name (git-file-name name version))
+         (sha256
+          (base32 "0a248sff1psfwzmngj465gzyisq20d83nzpwpq2cspxhih51m6j9"))))
+      (build-system pyproject-build-system)
+      (arguments
+       (list #:phases
+             #~(modify-phases %standard-phases
+                 (add-after 'build 'build-ext
+                   (lambda _
+                     (invoke "python" "setup.py" "build_ext"
+                             "--inplace")))
+                 (replace 'check
+                   (lambda* (#:key tests? #:allow-other-keys)
+                     (when tests?
+                       ;; Restrict OpenBLAS threads to prevent segfaults while testing!
+                       (setenv "OPENBLAS_NUM_THREADS" "1")
+  
+                       ;; Some tests require write access to $HOME.
+                       (setenv "HOME" "/tmp")
+  
+                       ;; Step out of the source directory to avoid interference;
+                       ;; we want to run the installed code with extensions etc.
+                       (with-directory-excursion "/tmp"
+                         (invoke "pytest" "-vv" "--pyargs"
+                                 "sklearn_extra"
+                                 ;; ignore tests that require network
+                                 "-k" "not test_build"))))))))
+      (propagated-inputs (list python-numpy python-scikit-learn python-scipy))
+      (native-inputs (list python-pytest python-pytest-cov python-cython))
+      (home-page "https://github.com/scikit-learn-contrib/scikit-learn-extra")
+      (synopsis "Set of tools for scikit-learn")
+      (description
+       "This package provides a Python module for machine learning that extends
 scikit-learn.  It includes algorithms that are useful but do not satisfy the
 scikit-learn inclusion criteria, for instance due to their novelty or lower
 citation number.")
-    (license license:bsd-3)))
+      (license license:bsd-3))))
 
 (define-public python-thinc
   (package

base-commit: 604ff7e28eead3ae8bd5e27136565e619a89e744
-- 
2.40.1





Reply sent to Greg Hogan <code <at> greghogan.com>:
You have taken responsibility. (Wed, 24 Jan 2024 15:00:02 GMT) Full text and rfc822 format available.

Notification sent to Greg Hogan <code <at> greghogan.com>:
bug acknowledged by developer. (Wed, 24 Jan 2024 15:00:02 GMT) Full text and rfc822 format available.

Message #10 received at 68533-done <at> debbugs.gnu.org (full text, mbox):

From: Greg Hogan <code <at> greghogan.com>
To: 68533-done <at> debbugs.gnu.org
Subject: Re: [PATCH] gnu: python-scikit-learn-extra: Update to 0.3.0-0f95d8d.
Date: Wed, 24 Jan 2024 09:59:16 -0500
Fixed in 6a22f65d661d65491bab2fc45da8ed6d6414f5ff




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 22 Feb 2024 12:24:08 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 116 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.