From: Sharlatan Hellseher <sharlatanus@gmail.com>
To: 62801@debbugs.gnu.org
Cc: Sharlatan Hellseher <sharlatanus@gmail.com>
Subject: [bug#62801] [PATCH 2/4] gnu: Add python-memory-profiler.
Date: Wed, 12 Apr 2023 22:05:27 +0100 [thread overview]
Message-ID: <20230412210529.30189-2-sharlatanus@gmail.com> (raw)
In-Reply-To: <20230412210529.30189-1-sharlatanus@gmail.com>
* gnu/packages/python-check.scm (python-memory-profiler): New variable.
---
gnu/packages/python-check.scm | 49 +++++++++++++++++++++++++++++++++++
1 file changed, 49 insertions(+)
diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm
index 41a6997190..0affd2896b 100644
--- a/gnu/packages/python-check.scm
+++ b/gnu/packages/python-check.scm
@@ -1771,6 +1771,55 @@ (define-public python-atpublic
(license (list license:asl2.0
license:lgpl3)))) ; only for setup_helpers.py
+(define-public python-memory-profiler
+ (package
+ (name "python-memory-profiler")
+ (version "0.61")
+ (source
+ (origin
+ ;; PyPi tarball lacks tests.
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/pythonprofilers/memory_profiler")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0n6g47qqmnn7abh3v25535hd8bmfvhf9bnp72m7bkd89f715m7xh"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ ;; XXX: @profile is not loaded in some test files and there are 3 tests
+ ;; which were failed, disable them for now.
+ (add-after 'unpack 'disable-fialing-tests
+ (lambda _
+ (with-directory-excursion "test"
+ (for-each delete-file
+ '("test_as.py"
+ "test_func.py"
+ "test_gen.py"
+ "test_loop.py"
+ "test_loop_decorated.py"
+ "test_mprofile.py"
+ "test_nested.py"
+ "test_precision_command_line.py"
+ "test_unicode.py")))
+ (substitute* "test/test_attributes.py"
+ (("def test_with_profile") "def __off_test_with_profile"))
+ (substitute* "test/test_stream_unicode.py"
+ (("def test_unicode") "def __off_test_unicode"))
+ (substitute* "test/test_tracemalloc.py"
+ (("def test_memory_profiler") "def __off_test_memory_profiler")))))))
+ (native-inputs (list python-pytest-7.1 python-pytest-fixture-config python-safety))
+ (propagated-inputs (list python-psutil))
+ (home-page "https://github.com/pythonprofilers/memory_profiler")
+ (synopsis "Monitor Memory usage of Python code")
+ (description
+ "This package provides a module for monitoring memory usage of a python
+program.")
+ (license license:bsd-3)))
+
(define-public python-mockito
(package
(name "python-mockito")
--
2.39.2
next prev parent reply other threads:[~2023-04-12 21:06 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-12 20:57 [bug#62801] [PATCH 0/4]: gnu: python-astroalign: Update to 2.4.2 Sharlatan Hellseher
2023-04-12 21:05 ` [bug#62801] [PATCH 1/4] gnu: Add python-astroscrappy Sharlatan Hellseher
2023-04-12 21:05 ` Sharlatan Hellseher [this message]
2023-04-20 1:52 ` [bug#62801] [PATCH 0/4]: gnu: python-astroalign: Update to 2.4.2 Maxim Cournoyer
2023-04-12 21:05 ` [bug#62801] [PATCH 3/4] gnu: Add python-ccdproc Sharlatan Hellseher
2023-04-20 1:55 ` [bug#62801] [PATCH 0/4]: gnu: python-astroalign: Update to 2.4.2 Maxim Cournoyer
2023-04-12 21:05 ` [bug#62801] [PATCH 4/4] " Sharlatan Hellseher
2023-04-20 1:58 ` [bug#62801] [PATCH 0/4]: " Maxim Cournoyer
2023-04-20 1:48 ` Maxim Cournoyer
2023-04-18 20:21 ` [bug#62801] Sharlatan Hellseher
2023-04-24 17:41 ` [bug#62801] Sharlatan Hellseher
2023-05-07 14:40 ` bug#62801: Maxim Cournoyer
2023-04-21 20:04 ` [bug#62801] [PATCH v2 1/4] gnu: Add python-astroscrappy Sharlatan Hellseher
2023-04-21 20:04 ` [bug#62801] [PATCH v2 2/4] gnu: Add python-memory-profiler Sharlatan Hellseher
2023-04-21 20:04 ` [bug#62801] [PATCH v2 3/4] gnu: Add python-ccdproc Sharlatan Hellseher
2023-04-21 20:04 ` [bug#62801] [PATCH v2 4/4] gnu: python-astroalign: Update to 2.4.2 Sharlatan Hellseher
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230412210529.30189-2-sharlatanus@gmail.com \
--to=sharlatanus@gmail.com \
--cc=62801@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.