@@ -1755,28 +1755,10 @@ (define-public python-memory-profiler
(list
#:phases
#~(modify-phases %standard-phases
- ;; XXX: @profile is not loaded in some test files and there are 3
- ;; tests fail, disable them for now.
- (add-after 'unpack 'disable-failing-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")))))))
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "make" "test")))))))
(native-inputs
(list python-pytest python-pytest-fixture-config python-safety))
(propagated-inputs (list python-psutil))