mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2026-05-01 23:05:57 +02:00
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>
This commit is contained in:
committed by
Sharlatan Hellseher
parent
a2dbf2af82
commit
ea4db17a0f
+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
|
||||
|
||||
Reference in New Issue
Block a user