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

commit 345fb43cc015354abeab9af1f26f9b626c3469af
Author: Sharlatan Hellseher <sharlata...@gmail.com>
AuthorDate: Thu Jan 23 21:51:51 2025 +0000

    gnu: python-pympler: Update to 1.1.
    
    * gnu/packages/python-xyz.scm (python-pympler): Update to 1.1.
    [source] <uri>: Adjust it as name of PyPI archive has been changed.
    [bulid-system]: Swap to pyproject-build-system.
    [arguments] <test-flags>: Skip one test.
    <phases>: Remove 'skip-broken-test.
    [native-inputs]: Add python-pytest, python-setuptools, and python-wheel.
    
    Change-Id: I4d9e942a2f52548f0443cb498d678dc892762f90
---
 gnu/packages/python-xyz.scm | 36 +++++++++++++++++-------------------
 1 file changed, 17 insertions(+), 19 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index eb86310760..da8f06987a 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -7100,27 +7100,25 @@ JavaScript-like message boxes.  Types of dialog boxes 
include:
 (define-public python-pympler
   (package
     (name "python-pympler")
-    (home-page "https://pythonhosted.org/Pympler/";)
-    (version "1.0.1")
-    (source (origin
-              (method url-fetch)
-              (uri (pypi-uri "Pympler" version))
-              (sha256
-               (base32
-                "1ynkqpv2akldmvkll5vh5zhwj433s1d59iv0f76lygyak4silgwr"))))
-    (build-system python-build-system)
+    (version "1.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "pympler" version))
+       (sha256
+        (base32 "090403k1wvqyddjwbla4843dylysrkd8yw7i62222b4rp1y8dahy"))))
+    (build-system pyproject-build-system)
     (arguments
      (list
-      #:phases
-      #~(modify-phases %standard-phases
-          (add-after 'unpack 'skip-broken-test
-            (lambda _
-              ;; FIXME: This test fails for no good reason:
-              ;; https://github.com/pympler/pympler/issues/153
-              (substitute* "test/muppy/test_tracker.py"
-                (("^([[:blank:]]+)def test_stracker_create_summary" all indent)
-                 (string-append indent "@unittest.skipIf(True, \
-'Fails on Guix too for unknown reasons')\n" all))))))))
+      ;; One test fails with error: 'function (test.muppy.test_summary.func)'
+      ;; != 'function (muppy.test_summary.func)'.
+      ;; See <https://github.com/pympler/pympler/issues/134>.
+      #:test-flags #~(list "-k" "not test_repr_function")))
+    (native-inputs
+     (list python-pytest
+           python-setuptools
+           python-wheel))
+    (home-page "https://pythonhosted.org/Pympler/";)
     (synopsis "Measure, monitor and analyze memory behavior")
     (description
      "Pympler is a development tool to measure, monitor and analyze

Reply via email to