guix_mirror_bot pushed a commit to branch python-team
in repository guix.

commit e01f0524349434664f74e8b1bc95bb7e0c277e2c
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Wed Jun 10 10:44:42 2026 +0100

    gnu: python-bottleneck: Update to 1.6.0.
    
    * gnu/packages/python-science.scm (python-bottleneck): Update to 1.6.0.
    [source]: Switch to git-fetch.
    [arguments] <test-flags>: Run tests from compiled and installed package.
    <phases>: Remove 'rebuild-ext; add 'remove-local-source.
    [native-inputs]: Remove python-wheel; add python-versioneer.
    
    Change-Id: Iddba3402326d63542a4aae5cbe43bbf562ed141c
---
 gnu/packages/python-science.scm | 26 ++++++++++++++++----------
 1 file changed, 16 insertions(+), 10 deletions(-)

diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm
index 94a8a8abce..3edc06e7d7 100644
--- a/gnu/packages/python-science.scm
+++ b/gnu/packages/python-science.scm
@@ -628,25 +628,31 @@ one of the fastest libraries for histogramming.")
 (define-public python-bottleneck
   (package
     (name "python-bottleneck")
-    (version "1.4.2")
+    (version "1.6.0")
     (source
      (origin
-       (method url-fetch)
-       (uri (pypi-uri "bottleneck" version))
+       (method git-fetch)
+       (uri (git-reference
+              (url "https://github.com/pydata/bottleneck";)
+              (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
        (sha256
-        (base32 "1x29yj4yr12v646si63gkxj9b6lx1xk65536wqy4i9fyk4bqx3ps"))))
+        (base32 "1p2ixxwdll1bhaqg68iywrb6n8kwscbnbx08q47fjslwzy8vkh7i"))))
     (build-system pyproject-build-system)
     (arguments
      (list
+      #:test-flags #~(list "--pyargs" "bottleneck")
       #:phases
       #~(modify-phases %standard-phases
-          (add-before 'check 'rebuild-ext
+          (add-before 'check 'remove-local-source
             (lambda _
-              (invoke "python" "setup.py" "build_ext" "--inplace"))))))
-    (native-inputs (list python-pytest
-                         python-setuptools
-                         python-wheel))
-    (propagated-inputs (list python-numpy))
+              (delete-file-recursively "bottleneck"))))))
+    (native-inputs
+     (list python-pytest
+           python-setuptools
+           python-versioneer))
+    (propagated-inputs
+     (list python-numpy))
     (home-page "https://github.com/pydata/bottleneck";)
     (synopsis "Fast NumPy array functions written in C")
     (description

Reply via email to