diff options
| author | Nicolas Graves <ngraves@ngraves.fr> | 2025-09-22 00:45:16 +0200 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-09-25 09:36:55 +0100 |
| commit | f69c32a118c528f6c21ea779717d3e5f190d9c44 (patch) | |
| tree | 369a86c81ce2bdece8d5ea4bca62e7ba18e6fa54 /gnu | |
| parent | 8408a2acd3c211980cc2237a450a85a2596f8cb6 (diff) | |
gnu: python-hiro: Fix tests.
* gnu/packages/python-check.scm (python-hiro):
[source]: Switch to git-fetch.
[native-inputs]: Add python-pytest, python-pytest-cov. Remove
python-wheel.
[description]: Improve style.
Change-Id: I30447c5227e09b76708e2c075639c4e95a8f03ee
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/python-check.scm | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm index d4cc2c79750..990ee1cf1e7 100644 --- a/gnu/packages/python-check.scm +++ b/gnu/packages/python-check.scm @@ -879,18 +879,23 @@ Built-in integration with @url{http://nedbatchelder.com/code/coverage/, coverage (version "1.1.1") (source (origin - (method url-fetch) - (uri (pypi-uri "hiro" version)) + (method git-fetch) + (uri (git-reference + (url "https://github.com/alisaifee/hiro") + (commit version))) + (file-name (git-file-name name version)) (sha256 - (base32 "0s2xz72i7kbm0l75vr04cqq2war74p3p376wm76999f93npkjcys")))) + (base32 "0j7z54nd72qfc065jgljqx53dhfkfz0922fk8qqczg7swmqf6cqv")))) (build-system pyproject-build-system) - (native-inputs (list python-setuptools python-wheel)) - (home-page "https://hiro.readthedocs.io/") + (native-inputs + (list python-pytest python-pytest-cov python-setuptools)) + (home-page "https://hiro.readthedocs.io") (synopsis "Time manipulation utilities for testing in Python") - (description "Hiro provides context managers and utilities to either -freeze, accelerate or decelerate and jump between different points in time. -Functions exposed by the standard library’s @code{time}, @code{datetime} and -@code{date} modules are patched within the contexts exposed.") + (description + "Hiro provides context managers and utilities to either freeze, +accelerate or decelerate and jump between different points in time. Functions +exposed by the standard library’s @code{time}, @code{datetime} and @code{date} +modules are patched within the contexts exposed.") (license license:expat))) (define-public python-httmock |
