GNU bug report logs - #67051
[PATCH] gnu: Add python-scikit-learn-extra

Previous Next

Package: guix-patches;

Reported by: Timothee Mathieu <timothee.mathieu <at> inria.fr>

Date: Fri, 10 Nov 2023 17:31:03 UTC

Severity: normal

Tags: patch

Done: Ludovic Courtès <ludo <at> gnu.org>

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 67051 in the body.
You can then email your comments to 67051 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#67051; Package guix-patches. (Fri, 10 Nov 2023 17:31:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Timothee Mathieu <timothee.mathieu <at> inria.fr>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Fri, 10 Nov 2023 17:31:03 GMT) Full text and rfc822 format available.

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

From: Timothee Mathieu <timothee.mathieu <at> inria.fr>
To: guix-patches <guix-patches <at> gnu.org>
Cc: Timothee Mathieu <timothee.mathieu <at> inria.fr>
Subject: [PATCH] gnu: Add python-scikit-learn-extra
Date: Fri, 10 Nov 2023 18:27:43 +0100 (CET)
[Message part 1 (text/plain, inline)]
From 59c388e64c12e39f7fb91ca538be332a130a3872 Mon Sep 17 00:00:00 2001 
Message-ID: <59c388e64c12e39f7fb91ca538be332a130a3872.1699637173.git.timothee.mathieu <at> inria.fr> 
From: Timothee Mathieu <timothee.mathieu <at> inria.fr> 
Date: Fri, 10 Nov 2023 17:54:05 +0100 
Subject: [PATCH] gnu: Add python-scikit-learn-extra. 

* gnu/packages/machine-learning.scm (python-scikit-learn-extra): New variable. 

Change-Id: I50992ceaa76608f3345df6d74a5d9e4aa7c485a5 
--- 
gnu/packages/machine-learning.scm | 41 +++++++++++++++++++++++++++++++ 
1 file changed, 41 insertions(+) 

diff --git a/gnu/packages/machine-learning.scm b/gnu/packages/machine-learning.scm 
index a84377e1eb..1d0b796c68 100644 
--- a/gnu/packages/machine-learning.scm 
+++ b/gnu/packages/machine-learning.scm 
@@ -1532,6 +1532,47 @@ (define-public python-scikit-learn 
data analysis.") 
(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 "v0.3.0"))) 
+ (file-name (git-file-name name version)) 
+ (sha256 (base32 "0yy6ka94ss88f3r7b6mpjf1l8lnv7aabhsg844pigfj8lfiv0wvl")))) 
+ (build-system pyproject-build-system) 
+ (arguments 
+ `(#: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 set of tools for scikit-learn.") 
+ (license license:bsd-3)) 
+) 
+ 
(define-public python-thinc 
(package 
(name "python-thinc") 

base-commit: bb3ab24a296ffa5273b2e82a02ed057e90c095f3 
-- 
2.42.1 

[Message part 2 (text/html, inline)]

Reply sent to Ludovic Courtès <ludo <at> gnu.org>:
You have taken responsibility. (Sat, 02 Dec 2023 11:23:01 GMT) Full text and rfc822 format available.

Notification sent to Timothee Mathieu <timothee.mathieu <at> inria.fr>:
bug acknowledged by developer. (Sat, 02 Dec 2023 11:23:02 GMT) Full text and rfc822 format available.

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

From: Ludovic Courtès <ludo <at> gnu.org>
To: Timothee Mathieu <timothee.mathieu <at> inria.fr>
Cc: 67051-done <at> debbugs.gnu.org
Subject: Re: [bug#67051] [PATCH] gnu: Add python-scikit-learn-extra
Date: Sat, 02 Dec 2023 12:21:49 +0100
Hi Timothée,

Timothee Mathieu <timothee.mathieu <at> inria.fr> skribis:

>>From 59c388e64c12e39f7fb91ca538be332a130a3872 Mon Sep 17 00:00:00 2001 
> Message-ID: <59c388e64c12e39f7fb91ca538be332a130a3872.1699637173.git.timothee.mathieu <at> inria.fr> 
> From: Timothee Mathieu <timothee.mathieu <at> inria.fr> 
> Date: Fri, 10 Nov 2023 17:54:05 +0100 
> Subject: [PATCH] gnu: Add python-scikit-learn-extra. 
>
> * gnu/packages/machine-learning.scm (python-scikit-learn-extra): New variable. 
>
> Change-Id: I50992ceaa76608f3345df6d74a5d9e4aa7c485a5 

Applied, thanks!

I ran ‘guix style’ and ‘guix style -S arguments’ on the package and also
augmented the description based on their README.

BTW, the mail client had mangled the patch.  In the future please send
it as an attachment or using ‘git send-email’ to ensure it reaches the
mailing list unaltered.

Thank you,
Ludo’.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 30 Dec 2023 12:24:07 GMT) Full text and rfc822 format available.

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

Previous Next


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