aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorMaxim Cournoyer <maxim.cournoyer@gmail.com>2022-05-13 15:03:26 -0400
committerMaxim Cournoyer <maxim.cournoyer@gmail.com>2022-05-31 14:54:12 -0400
commit4a0e996ada9cd76e302d7f97446513cea1391c09 (patch)
tree0d4018d8d272de936b0c93f187686288b34039e7 /gnu/packages
parent61d0c52b9d0bba9425df76781d58618cb655c4f3 (diff)
downloadguix-4a0e996ada9cd76e302d7f97446513cea1391c09.tar
guix-4a0e996ada9cd76e302d7f97446513cea1391c09.tar.gz
gnu: pdf2djvu: Disable tests to avoid Python 2 dependencies.
* gnu/packages/djvu.scm (pdf2djvu)[tests]: Set to #f. [test-target]: Delete argument. [native-inputs]: Use new style. Delete python-2 and python2-nose. [inputs]: Use new style.
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/djvu.scm32
1 files changed, 8 insertions, 24 deletions
diff --git a/gnu/packages/djvu.scm b/gnu/packages/djvu.scm
index f27dc70b70..b85193ccdb 100644
--- a/gnu/packages/djvu.scm
+++ b/gnu/packages/djvu.scm
@@ -151,31 +151,15 @@ a continuous layout.")
(sha256
(base32 "0c595yziz81c9izf9s5sskd00qmgz2n1hp2vdcgg0dx81g3xfidb"))))
(build-system gnu-build-system)
- (native-inputs
- `(("gettext" ,gettext-minimal)
- ("pkg-config" ,pkg-config)
- ("python2" ,python-2)
- ("python2-nose" ,python2-nose)))
+ (arguments (list #:tests? #f)) ;requires Python 2
+ (native-inputs (list gettext-minimal pkg-config))
(inputs
- `(("djvulibre" ,djvulibre)
- ("exiv2" ,exiv2)
- ("graphicsmagick" ,graphicsmagick)
- ("poppler" ,poppler)
- ("poppler-data" ,poppler-data)
- ("util-linux-lib" ,util-linux "lib"))) ; for libuuid
- (arguments
- `(#:test-target "test"
- #:phases
- (modify-phases %standard-phases
- (add-after 'unpack 'fix-tests
- (lambda _
- (substitute* "tests/test-xmp-broken.py"
- ;; Error message changed in recent versions of XML parser
- (("XML parsing failure")
- "Error in XMLValidator"))))
- (add-before 'check 'set-home-for-tests
- (lambda _
- (setenv "HOME" "/tmp"))))))
+ (list djvulibre
+ exiv2
+ graphicsmagick
+ poppler
+ poppler-data
+ `(,util-linux "lib"))) ;for libuuid
(synopsis "PDF to DjVu converter")
(description
"@code{pdf2djvu} creates DjVu files from PDF files.