summaryrefslogtreecommitdiff
path: root/gnu/packages/python-xyz.scm
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/packages/python-xyz.scm')
-rw-r--r--gnu/packages/python-xyz.scm45
1 files changed, 29 insertions, 16 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index e1d607cb2d..31bb14baee 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -8609,21 +8609,20 @@ Google and Numpydoc format.")
(define-public python-docutils
(package
(name "python-docutils")
- (version "0.19")
- (source (origin
- (method url-fetch)
- (uri (pypi-uri "docutils" version))
- (sha256
- (base32
- "1rprvir116g5rz2bgzkzgyn6mv0z8582rz7bgxbpy2y3adkmm69k"))))
- (build-system python-build-system)
+ (version "0.21.2")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "docutils" version))
+ (sha256
+ (base32 "0vwqzbmzdvwx23myx4cg8s8mdkrqnfxpa9yi7jm2s66z5rrihsrs"))))
+ (build-system pyproject-build-system)
(arguments
- '(#:phases (modify-phases %standard-phases
- (replace 'check
- (lambda* (#:key tests? #:allow-other-keys)
- (if tests?
- (invoke "python" "test/alltests.py")
- (format #t "test suite not run~%")))))))
+ (list
+ #:test-backend #~'custom
+ #:test-flags #~(list "test/alltests.py")))
+ (native-inputs
+ (list python-flit-core))
(home-page "https://docutils.sourceforge.net/")
(synopsis "Python Documentation Utilities")
(description
@@ -8651,7 +8650,21 @@ via commands such as @command{rst2man}, as well as supporting Python code.")
;; tests contain Python 2 syntax.
(arguments '(#:tests? #false))
(native-inputs
- (list python-setuptools))))
+ (list python-setuptools python-wheel))))
+
+(define-public python-docutils-0.19
+ (hidden-package
+ (package
+ (inherit python-docutils)
+ (version "0.19")
+ (source (origin
+ (method url-fetch)
+ (uri (pypi-uri "docutils" version))
+ (sha256
+ (base32
+ "1rprvir116g5rz2bgzkzgyn6mv0z8582rz7bgxbpy2y3adkmm69k"))))
+ (native-inputs
+ (list python-setuptools python-wheel)))))
(define-public python-docx
(package
@@ -39948,7 +39961,7 @@ path.")
(native-inputs
(list perl-image-exiftool
python-dateutil
- python-docutils
+ python-docutils-0.19
python-jinja2
python-markdown
python-pillow