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
This commit is contained in:
Sharlatan Hellseher 2025-01-23 21:51:51 +00:00 committed by Andreas Enge
parent b9caaf767e
commit 90ee5a3fbc
No known key found for this signature in database
GPG key ID: F7D5C9BF765C61E3

View file

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