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

commit a502f452084b2fd66995bfd78d3dbf32ab6601ef
Author: Hugo Buddelmeijer <[email protected]>
AuthorDate: Sun Jul 12 12:27:25 2026 +0200

    gnu: python-pytest-harvest: Fix build and update to 1.10.5-0.65ca633.
    
    * gnu/packages/python-check.scm (python-pytest-harvest): To 
1.10.5-0.65ca633.
    [source]: Switch to git-fetch for tests.
    [arguments]<#:tests?>: Enable tests.
    <#:test-flag>: Disable test that requires dependency cycle.
    [native-inputs]: Add python-numpy, python-pandas, and python-tabulate.
    [description: Fix grammar.
    
    Relates-to: guix/guix!9885
    Signed-off-by: Sharlatan Hellseher <[email protected]>
---
 gnu/packages/python-check.scm | 28 +++++++++++++++++++++-------
 1 file changed, 21 insertions(+), 7 deletions(-)

diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm
index 5d64c6b21d..156398a26d 100644
--- a/gnu/packages/python-check.scm
+++ b/gnu/packages/python-check.scm
@@ -3255,20 +3255,34 @@ times and detect flakiness.")
 (define-public python-pytest-harvest
   (package
     (name "python-pytest-harvest")
-    (version "1.10.5")
+    ;; Latest commit does not require python-six and has better test structure.
+    (properties '((commit . "65ca6337462913f5a0d3c960de70ebd5ae042c21")
+                  (revision . "0")))
+    (version (git-version "1.10.5"
+                          (assoc-ref properties 'revision)
+                          (assoc-ref properties 'commit)))
     (source
      (origin
-       (method url-fetch)
-       (uri (pypi-uri "pytest-harvest" version))
+       (method git-fetch)
+       (uri (git-reference
+              (url "https://github.com/smarie/python-pytest-harvest";)
+              (commit (assoc-ref properties 'commit))))
+       (file-name (git-file-name name version))
        (sha256
-        (base32 "066lqx46hqlvllq6ppmyi47fjc1dww7jwa4wfkkx2hrf3z7s9kr7"))))
+        (base32 "1wxgn2hb160sknha38gazgk2cvr9h54x4hcjarbpghxfa1qqpghp"))))
     (build-system pyproject-build-system)
     (arguments
-     (list #:tests? #f))        ;XXX: cycle with python-pytest-harvest
+     (list
+      #:test-flags
+      ;; Break dependency cycle with python-pytest-cases.
+      #~(list "--ignore=tests/test_lazy_and_harvest.py")))
     (native-inputs
      (list python-pytest-bootstrap
+           python-numpy
+           python-pandas
            python-setuptools
-           python-setuptools-scm))
+           python-setuptools-scm
+           python-tabulate))
     (propagated-inputs
      (list python-decopatch
            python-makefun
@@ -3276,7 +3290,7 @@ times and detect flakiness.")
     (home-page "https://github.com/smarie/python-pytest-harvest";)
     (synopsis "Pytest plugin to store data during runs")
     (description
-     "This package implements a functionality to store data created during your
+     "This package implements functionality to store data created during your
 pytest tests execution, and retrieve it at the end of the session, e.g. for
 applicative benchmarking purposes.")
     (license license:bsd-3)))

Reply via email to