guix_mirror_bot pushed a commit to branch python-team
in repository guix.
commit f8b78b6b4def6b818df7bb1c8e4e30e21289092f
Author: Nicolas Graves <[email protected]>
AuthorDate: Thu Jan 29 19:03:01 2026 +0100
gnu: ghmm: Improve style.
Disclaimer: This package is broken, but I consider it a bit out of my
scope to fix it now, and the change is easily reviewable.
* gnu/packages/machine-learning.scm (ghmm)[arguments]: Improve style,
use gexps.
Change-Id: I4d5dc763a79f58fd21b95338b85ad980c531df34
Signed-off-by: Sharlatan Hellseher <[email protected]>
---
gnu/packages/machine-learning.scm | 77 ++++++++++++++++++---------------------
1 file changed, 36 insertions(+), 41 deletions(-)
diff --git a/gnu/packages/machine-learning.scm
b/gnu/packages/machine-learning.scm
index 89cc217c59..dba4cc41b9 100644
--- a/gnu/packages/machine-learning.scm
+++ b/gnu/packages/machine-learning.scm
@@ -802,48 +802,43 @@ NumPy @code{dtype} extensions used in machine learning
libraries, including:
"07kdsngvr4n1qxpqzv1nlay7g41d6jzjppa8vzmrg220s8ing87z"))))
(build-system gnu-build-system)
(arguments
- `(#:imported-modules (,@%default-gnu-imported-modules
- (guix build python-build-system))
- #:modules ((guix build python-build-system)
- ,@%default-gnu-modules)
- #:phases
- (modify-phases %standard-phases
- (add-after 'unpack 'enter-dir
- (lambda _ (chdir "ghmm")))
- (add-after 'enter-dir 'fix-runpath
- (lambda* (#:key outputs #:allow-other-keys)
- (substitute* "ghmmwrapper/setup.py"
- (("^(.*)extra_compile_args = \\[" line indent)
- (string-append indent
- "extra_link_args = [\"-Wl,-rpath="
- (assoc-ref outputs "out") "/lib\"],\n"
- line
- "\"-Wl,-rpath="
- (assoc-ref outputs "out")
- "/lib\", ")))))
- (add-after 'enter-dir 'disable-broken-tests
- (lambda _
- (substitute* "tests/Makefile.am"
- ;; GHMM_SILENT_TESTS is assumed to be a command.
- (("TESTS_ENVIRONMENT.*") "")
- ;; Do not build broken tests.
- (("chmm .*") "")
- (("read_fa .*") "")
- (("mcmc .*") "")
- (("label_higher_order_test.*$")
- "label_higher_order_test\n"))
-
- ;; These Python unittests are broken as there is no gato.
- ;; See https://sourceforge.net/p/ghmm/support-requests/3/
- (substitute* "ghmmwrapper/ghmmunittests.py"
- (("^(.*)def
(testNewXML|testMultipleTransitionClasses|testNewXML)"
- line indent)
- (string-append indent
- "@unittest.skip(\"Disabled by Guix\")\n"
- line))))))))
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'enter-dir
+ (lambda _ (chdir "ghmm")))
+ (add-after 'enter-dir 'fix-runpath
+ (lambda _
+ (substitute* "ghmmwrapper/setup.py"
+ (("^(.*)extra_compile_args = \\[" line indent)
+ (string-append indent
+ "extra_link_args = [\"-Wl,-rpath="
+ #$output "/lib\"],\n"
+ line
+ "\"-Wl,-rpath=" #$output "/lib\", ")))))
+ (add-after 'enter-dir 'disable-broken-tests
+ (lambda _
+ (substitute* "tests/Makefile.am"
+ ;; GHMM_SILENT_TESTS is assumed to be a command.
+ (("TESTS_ENVIRONMENT.*") "")
+ ;; Do not build broken tests.
+ (("chmm .*") "")
+ (("read_fa .*") "")
+ (("mcmc .*") "")
+ (("label_higher_order_test.*$")
+ "label_higher_order_test\n"))
+
+ ;; These Python unittests are broken as there is no gato.
+ ;; See https://sourceforge.net/p/ghmm/support-requests/3/
+ (substitute* "ghmmwrapper/ghmmunittests.py"
+ (("^(.*)def
(testNewXML|testMultipleTransitionClasses|testNewXML)"
+ line indent)
+ (string-append indent
+ "@unittest.skip(\"Disabled by Guix\")\n"
+ line))))))))
(inputs
- `(("python" ,python-2) ; only Python 2 is supported
- ("libxml2" ,libxml2)))
+ (list python-2
+ libxml2))
(native-inputs
(list pkg-config
dejagnu