guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#62801] [PATCH 0/4]: gnu: python-astroalign: Update to 2.4.2.


From: Maxim Cournoyer
Subject: [bug#62801] [PATCH 0/4]: gnu: python-astroalign: Update to 2.4.2.
Date: Wed, 19 Apr 2023 21:52:46 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)

Hello,

Sharlatan Hellseher <sharlatanus@gmail.com> writes:

> * 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.
                      ^fail
                      
> +          (add-after 'unpack 'disable-fialing-tests
                                         ^failing

> +            (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))

Please wrap lines to 80 characters.

-- 
Thanks,
Maxim





reply via email to

[Prev in Thread] Current Thread [Next in Thread]