~ruther/guix-local

808703c4ea9550f8af877705cfceab7a9d023300 — Sharlatan Hellseher 5 months ago 0556de0
gnu: python-typer: Update to 0.19.2.

* gnu/packages/python-xyz.scm (python-typer): Update to 0.19.2. Fix
indentation and style.
[arguments] <test-flags>: Run tests in parallel, supported by upstream.
<phases>: Remove 'pre-check.
[native-inputs]: Add python-pytest-xdist.

Change-Id: Ib3810ea21d64b59b3a90935ed9caaabe8d6c5796
1 files changed, 17 insertions(+), 21 deletions(-)

M gnu/packages/python-xyz.scm
M gnu/packages/python-xyz.scm => gnu/packages/python-xyz.scm +17 -21
@@ 27663,41 27663,37 @@ source bytes using the UTF-8 encoding and then rewrites Python 3.6 style
(define-public python-typer
  (package
    (name "python-typer")
    (version "0.16.0")
    (version "0.19.2")
    (source
     (origin
       (method git-fetch)
       (uri (git-reference
             (url "https://github.com/fastapi/typer")
             (commit version)))
              (url "https://github.com/fastapi/typer")
              (commit version)))
       (file-name (git-file-name name version))
       (sha256
        (base32 "1axd3840b2vipfp9l36cnh5ipbsladizmjadgsnpnk502qily7sq"))))
        (base32 "13lkzlpb35xzz1spdisrmq7md9wq3msqxwcqj85vk905iq80xjwq"))))
    (build-system pyproject-build-system)
    (arguments
     (list
      #:phases
      #~(modify-phases %standard-phases
          (add-before 'check 'pre-check
            (lambda* (#:key tests? #:allow-other-keys)
              (when tests?
                (setenv "HOME" "/tmp")  ; some tests need it
                ;; This is for completion tests
                (with-output-to-file "/tmp/.bashrc"
                  (lambda _ (display "# dummy")))))))))
    (propagated-inputs (list python-click
                             python-rich
                             python-shellingham
                             python-typing-extensions))
    (native-inputs (list python-coverage ; this is required in tests
                         python-pdm-backend
                         python-pytest))
      #:test-flags
      #~(list "--numprocesses" (number->string (min 8 (parallel-job-count))))))
    (native-inputs
     (list python-coverage      ;this is required in tests
           python-pdm-backend
           python-pytest
           python-pytest-xdist))
    (propagated-inputs
     (list python-click
           python-typing-extensions
           ;; [optional]
           python-rich
           python-shellingham))
    (home-page "https://github.com/fastapi/typer")
    (synopsis "Typer builds CLI based on Python type hints")
    (description
     "Typer is a library for building CLI applications.  It's based on Python
3.6+ type hints.")
    ;; MIT license
    (license license:expat)))

(define-public python-typeguard