summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Graves <ngraves@ngraves.fr>2025-08-25 20:02:24 +0200
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-09-02 21:13:19 +0100
commit3fa2014c1fb08ef61501d3a90175bc919e29d389 (patch)
tree97962903d85a364185b14a1b8a1d720299b7ab57
parentdb1c4b85561659f6c493c22d336fbe63822e99f4 (diff)
gnu: python-pytest-doctest-custom: Switch to pyproject.
* gnu/packages/python-check.scm (python-pytest-doctest-custom): [source]: Switch to git-fetch. [build-system]: Switch to pyproject-build-system. [arguments]: Improve style. [native-inputs]: Add python-setuptools, python-wheel. Change-Id: I62c718785134be0ad13adbddeba098c05cdc472c Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
-rw-r--r--gnu/packages/python-check.scm32
1 files changed, 18 insertions, 14 deletions
diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm
index 2805b219a29..1a3b259fe9d 100644
--- a/gnu/packages/python-check.scm
+++ b/gnu/packages/python-check.scm
@@ -2127,25 +2127,29 @@ files and/or directories.")
(version "1.0.0")
(source
(origin
- (method url-fetch)
- (uri (pypi-uri "pytest-doctest-custom" version))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/danilobellini/pytest-doctest-custom")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
(sha256
- (base32 "0kxkdd6q9c3h31kc88lbyfll4c45b0zjd24cbr4c083fcvcy7lip"))))
- (build-system python-build-system)
+ (base32 "0hpdfazzvpgyhfr5la9n8k7a1j3z2nvqp76wiyzr73ha5wij33zl"))))
+ (build-system pyproject-build-system)
(arguments
- `(#:phases
- (modify-phases %standard-phases
- (replace 'check
- (lambda* (#:key inputs outputs tests? #:allow-other-keys)
- (when tests?
- (add-installed-pythonpath inputs outputs)
- (invoke "python" "test_pytest_doctest_custom.py")))))))
- (native-inputs
- (list python-pytest))
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key inputs outputs tests? #:allow-other-keys)
+ (when tests?
+ (add-installed-pythonpath inputs outputs)
+ (invoke "python" "test_pytest_doctest_custom.py")))))))
+ (native-inputs (list python-pytest python-setuptools python-wheel))
(home-page "https://github.com/danilobellini/pytest-doctest-custom")
(synopsis
"Pytest plugin to customize string representations of doctest results")
- (description "This package provides a Pytest plugin for customizing string
+ (description
+ "This package provides a Pytest plugin for customizing string
representations of doctest results. It can change the display hook used by
doctest to render the object representations.")
(license license:expat)))