~ruther/guix-local

ea4db17a0fc3f3931a053bd792d6f1505a912d26 — Nicolas Graves 10 months ago a2dbf2a
gnu: python-pytest-freezegun: Switch to pyproject.

* gnu/packages/check.scm (python-pytest-freezegun):
[source]: Switch to git-fetch.
[build-system]: Switch to pyproject-build-system.
[arguments]: Remove them.
[native-inputs]: Add python-setuptools, python-wheel. Remove unzip.
[description]: Improve style.

Change-Id: I30b86f2a004614c2fa5d7e8d5a679a730f5466dc
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
1 files changed, 14 insertions(+), 23 deletions(-)

M gnu/packages/check.scm
M gnu/packages/check.scm => gnu/packages/check.scm +14 -23
@@ 2907,32 2907,23 @@ failures.")
  (package
    (name "python-pytest-freezegun")
    (version "0.4.2")
    (source (origin
              ;; The test suite is not included in the PyPI archive.
              (method git-fetch)
              (uri (git-reference
                    (url "https://github.com/ktosiek/pytest-freezegun")
                    (commit version)))
              (file-name (git-file-name name version))
              (sha256
               (base32
                "10c4pbh03b4s1q8cjd75lr0fvyf9id0zmdk29566qqsmaz28npas"))))
    (build-system python-build-system)
    (arguments
     (list
      #:phases
      #~(modify-phases %standard-phases
          (replace 'check
            (lambda* (#:key tests? #:allow-other-keys)
              (when tests?
                (invoke "pytest" "-vv")))))))
    (source
     (origin
       (method git-fetch)
       (uri (git-reference
             (url "https://github.com/ktosiek/pytest-freezegun")
             (commit version)))
       (file-name (git-file-name name version))
       (sha256
        (base32 "10c4pbh03b4s1q8cjd75lr0fvyf9id0zmdk29566qqsmaz28npas"))))
    (build-system pyproject-build-system)
    (propagated-inputs (list python-freezegun python-pytest))
    (native-inputs (list unzip))
    (native-inputs (list python-setuptools python-wheel))
    (home-page "https://github.com/ktosiek/pytest-freezegun")
    (synopsis "Pytest plugin to freeze time in test fixtures")
    (description "The @code{pytest-freezegun} plugin wraps tests and fixtures
with @code{freeze_time}, which controls (i.e., freeze) the time seen
by the test.")
    (description
     "The @code{pytest-freezegun} plugin wraps tests and fixtures with
@code{freeze_time}, which controls (i.e., freeze) the time seen by the test.")
    (license license:expat)))

(define-public python-pytest-mypy