monego pushed a commit to branch master
in repository guix.

commit 9454789346a96a7e3169a840086e80d4d1e5b1ff
Author: Vinicius Monego <[email protected]>
AuthorDate: Sun Mar 16 19:49:30 2025 -0300

    gnu: python-ta-lib: Update to 0.6.3.
    
    * gnu/packages/finance.scm (python-ta-lib): Update to 0.6.3.
    [source]: Fetch from GitHub.
    [build-system]: Use pyproject-build-system.
    [arguments]<#:test-flags>: Ignore test file depending on polars.
    <#:phases>: Add phase 'delete-precompiled-files after 'unpack and
    'regenerate-talibc before 'build.
    [native-inputs]: Replace python-cython by python-cython-3. Remove
    python-nose. Add python-pytest, python-setuptools, python-wheel.
    
    Change-Id: I9875ac9f43574cccc90366080bb930284b587902
---
 gnu/packages/finance.scm | 38 +++++++++++++++++++++++++++-----------
 1 file changed, 27 insertions(+), 11 deletions(-)

diff --git a/gnu/packages/finance.scm b/gnu/packages/finance.scm
index 37c1034ac8..37521a0a6a 100644
--- a/gnu/packages/finance.scm
+++ b/gnu/packages/finance.scm
@@ -2231,20 +2231,36 @@ interactive controls.  This package provides a GTK+ 
graphical user interface
 (define-public python-ta-lib
   (package
     (name "python-ta-lib")
-    (version "0.4.32")
+    (version "0.6.3")
     (source
      (origin
-       (method url-fetch)
-       (uri (pypi-uri "TA-Lib" version))
+       ;; Git repo contains Make rules to regenerate precompiled files
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/TA-Lib/ta-lib-python";)
+             (commit (string-append "TA_Lib-" version))))
+       (file-name (git-file-name name version))
        (sha256
-        (base32 "186sgkpggy50gs2pa2p22zppl57xgfhpmja5l13xiskv44iw6x7v"))))
-    (build-system python-build-system)
-    (inputs
-     (list ta-lib))
-    (propagated-inputs
-     (list python-numpy))
-    (native-inputs
-     (list python-cython python-nose python-pandas))
+        (base32 "1qf00rnsn3s38yxqym1q4bdh98yykik5jdw492gn5ymddr499n1f"))))
+    (build-system pyproject-build-system)
+    (arguments
+     (list
+      ;; Ignore Polars test (not packaged, depends on Rust)
+      #:test-flags #~(list "--ignore" "tests/test_polars.py")
+      #:phases #~(modify-phases %standard-phases
+                   (add-after 'unpack 'delete-precompiled-files
+                     (lambda _
+                       (delete-file "talib/_ta_lib.c")))
+                   (add-before 'build 'regenerate-talibc
+                     (lambda _
+                       (invoke "make" "cython"))))))
+    (inputs (list ta-lib))
+    (propagated-inputs (list python-numpy))
+    (native-inputs (list python-cython-3
+                         python-pandas
+                         python-pytest
+                         python-setuptools
+                         python-wheel))
     (home-page "https://github.com/mrjbq7/ta-lib";)
     (synopsis "Python wrapper for TA-Lib")
     (description

Reply via email to