summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2025-07-16 22:47:36 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-09-25 09:36:04 +0100
commit0a37b21bf13c1224a4eee1a765c651b8fa0691f7 (patch)
tree6f14e5727e219feb5d1786d46ea6c0e56cdc3251 /gnu
parentfd65332b048fde2046684a14e6e0e3239774e9c4 (diff)
gnu: python-pytest-checkdocs: Update to 2.10.0.
* gnu/packages/python-check.scm (python-pytest-checkdocs): Update to 2.10.0. [source]: Switch to git-fetch, PyPI provides only the latest version of source packge where we need older compatible with python-pypa-build. [arguments] <phases>: Add 'set-version. [propagated-inputs]: Remove python-importlib-metadata, python-pep517, and python-pytest; add python-pypa-build. [native-inputs]: Add python-pytest-bootstrap and python-wheel. Change-Id: I414b8538cb143c94dc7f5c5c5b5db56a56e97c14
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/python-check.scm31
1 files changed, 21 insertions, 10 deletions
diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm
index 259960e0df6..58fd28ef146 100644
--- a/gnu/packages/python-check.scm
+++ b/gnu/packages/python-check.scm
@@ -1939,21 +1939,32 @@ failures per test.")
(define-public python-pytest-checkdocs
(package
(name "python-pytest-checkdocs")
- (version "2.7.1")
+ (version "2.10.0") ;PyPI contains only the latest version
(source
(origin
- (method url-fetch)
- (uri (pypi-uri "pytest-checkdocs" version))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/jaraco/pytest-checkdocs")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
(sha256
- (base32 "1bn1wr3yz8avkwacffyh26za7mg20f9pajpakfk4cn7yvmgbhcrb"))))
- (build-system python-build-system)
- (arguments (list #:tests? #f)) ;no tests in pypi archive
+ (base32 "1amw07skzfwy88dqvcsh308lcds7avyyja0qzdqrk4739cm1g0vh"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:tests? #f ;tests require network access
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'build 'set-version
+ (lambda _
+ (setenv "SETUPTOOLS_SCM_PRETEND_VERSION" #$version))))))
+ (native-inputs
+ (list python-pytest-bootstrap
+ python-setuptools-scm
+ python-wheel))
(propagated-inputs
(list python-docutils
- python-importlib-metadata
- python-pep517
- python-pytest))
- (native-inputs (list python-setuptools-scm))
+ python-pypa-build))
(home-page "https://github.com/jaraco/pytest-checkdocs")
(synopsis "Check the README when running tests")
(description