summaryrefslogtreecommitdiff
path: root/gnu/packages/python-check.scm
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2026-05-04 20:44:23 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2026-05-24 10:19:22 +0100
commit6667a6d47b3d1724ee22d9b891dc5d76f9e0ec69 (patch)
tree60ada7bef438f7ccc56ef9ad561463a691e812ca /gnu/packages/python-check.scm
parent3d6cc35ef239be590414bb830aff9127b2090221 (diff)
gnu: python-memory-profiler: Update to 0.61-0.025929f.
* gnu/packages/python-check.scm (python-memory-profiler): Update to 025929f8e4f4ea8c27ddb5ef72fc91f6bd703ea5 commit. [phases]{disable-failing-tests}: Remove phase. {check}: Use custom phase, run each test scenario manually as seen in Makefile. [native-inputs]: Remove python-pytest, python-pytest-fixture-config, python-safety, and python-wheel. Change-Id: Idc3770c0f01163845645da79b984ead326954314
Diffstat (limited to 'gnu/packages/python-check.scm')
-rw-r--r--gnu/packages/python-check.scm68
1 files changed, 35 insertions, 33 deletions
diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm
index 6cf18df8ca2..5ed487edb63 100644
--- a/gnu/packages/python-check.scm
+++ b/gnu/packages/python-check.scm
@@ -1726,51 +1726,53 @@ Ruff.")
1726(define-public python-memory-profiler 1726(define-public python-memory-profiler
1727 (package 1727 (package
1728 (name "python-memory-profiler") 1728 (name "python-memory-profiler")
1729 (version "0.61") 1729 ;; 0.61 (2022-11-15), the latest changes provide support for Python
1730 ;; 3.12+; move back to git tag when released.
1731 (properties '((commit . "025929f8e4f4ea8c27ddb5ef72fc91f6bd703ea5")
1732 (revision . "0")))
1733 (version (git-version "0.61"
1734 (assoc-ref properties 'revision)
1735 (assoc-ref properties 'commit)))
1730 (source 1736 (source
1731 (origin 1737 (origin
1732 ;; PyPi tarball lacks tests.
1733 (method git-fetch) 1738 (method git-fetch)
1734 (uri (git-reference 1739 (uri (git-reference
1735 (url "https://github.com/pythonprofilers/memory_profiler") 1740 (url "https://github.com/pythonprofilers/memory_profiler")
1736 (commit (string-append "v" version)))) 1741 (commit (assoc-ref properties 'commit))))
1737 (file-name (git-file-name name version)) 1742 (file-name (git-file-name name version))
1738 (sha256 1743 (sha256
1739 (base32 "0n6g47qqmnn7abh3v25535hd8bmfvhf9bnp72m7bkd89f715m7xh")))) 1744 (base32 "1hg6qd236hx8shwpvwrwffnskjjiqicd8fxlx9fm8jkiryb955nn"))))
1740 (build-system pyproject-build-system) 1745 (build-system pyproject-build-system)
1741 (arguments 1746 (arguments
1742 (list 1747 (list
1743 #:phases 1748 #:phases
1744 #~(modify-phases %standard-phases 1749 #~(modify-phases %standard-phases
1745 ;; XXX: @profile is not loaded in some test files and there are 3 1750 (replace 'check
1746 ;; tests fail, disable them for now. 1751 (lambda* (#:key tests? #:allow-other-keys)
1747 (add-after 'unpack 'disable-failing-tests 1752 (when tests?
1748 (lambda _ 1753 (for-each (lambda (test)
1749 (with-directory-excursion "test" 1754 (invoke "python" "-m" "memory_profiler" test))
1750 (for-each delete-file 1755 (list "test/test_func.py"
1751 '("test_as.py" 1756 "test/test_loop.py"
1752 "test_func.py" 1757 "test/test_mprofile.py"
1753 "test_gen.py" 1758 "test/test_as.py"
1754 "test_loop.py" 1759 "test/test_global.py"
1755 "test_loop_decorated.py" 1760 "test/test_precision_command_line.py"
1756 "test_mprofile.py" 1761 "test/test_gen.py"
1757 "test_nested.py" 1762 "test/test_unicode.py"))
1758 "test_precision_command_line.py" 1763 (for-each (lambda (test)
1759 "test_unicode.py"))) 1764 (invoke "python" test))
1760 (substitute* "test/test_attributes.py" 1765 (list "test/test_tracemalloc.py"
1761 (("def test_with_profile") "def __off_test_with_profile")) 1766 "test/test_import.py"
1762 (substitute* "test/test_stream_unicode.py" 1767 "test/test_memory_usage.py"
1763 (("def test_unicode") "def __off_test_unicode")) 1768 "test/test_precision_import.py"
1764 (substitute* "test/test_tracemalloc.py" 1769 "test/test_exception.py"
1765 (("def test_memory_profiler") 1770 "test/test_exit_code.py"))
1766 "def __off_test_memory_profiler"))))))) 1771 (invoke "mprof" "run" "test/test_func.py")))))))
1767 (native-inputs 1772 (native-inputs
1768 (list python-pytest 1773 (list python-setuptools))
1769 python-pytest-fixture-config 1774 (propagated-inputs
1770 python-safety 1775 (list python-psutil))
1771 python-setuptools
1772 python-wheel))
1773 (propagated-inputs (list python-psutil))
1774 (home-page "https://github.com/pythonprofilers/memory_profiler") 1776 (home-page "https://github.com/pythonprofilers/memory_profiler")
1775 (synopsis "Memory profiler for Python") 1777 (synopsis "Memory profiler for Python")
1776 (description 1778 (description