diff options
| author | Nicolas Graves <ngraves@ngraves.fr> | 2025-08-14 10:40:51 +0200 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-08-16 00:25:44 +0100 |
| commit | ea4db17a0fc3f3931a053bd792d6f1505a912d26 (patch) | |
| tree | 69ccb559d8d2a6a6630cf0e8804106da75a2c741 | |
| parent | a2dbf2af82e1104aba8cf53fe704281ad4071bab (diff) | |
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>
| -rw-r--r-- | gnu/packages/check.scm | 37 |
1 files changed, 14 insertions, 23 deletions
diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm index d754f6de2be..981773b1714 100644 --- a/gnu/packages/check.scm +++ b/gnu/packages/check.scm @@ -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 |
