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.
This commit is contained in:
parent
61d0c52b9d
commit
4a0e996ada
@ -151,31 +151,15 @@ a continuous layout.")
|
|||||||
(sha256
|
(sha256
|
||||||
(base32 "0c595yziz81c9izf9s5sskd00qmgz2n1hp2vdcgg0dx81g3xfidb"))))
|
(base32 "0c595yziz81c9izf9s5sskd00qmgz2n1hp2vdcgg0dx81g3xfidb"))))
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
(native-inputs
|
(arguments (list #:tests? #f)) ;requires Python 2
|
||||||
`(("gettext" ,gettext-minimal)
|
(native-inputs (list gettext-minimal pkg-config))
|
||||||
("pkg-config" ,pkg-config)
|
|
||||||
("python2" ,python-2)
|
|
||||||
("python2-nose" ,python2-nose)))
|
|
||||||
(inputs
|
(inputs
|
||||||
`(("djvulibre" ,djvulibre)
|
(list djvulibre
|
||||||
("exiv2" ,exiv2)
|
exiv2
|
||||||
("graphicsmagick" ,graphicsmagick)
|
graphicsmagick
|
||||||
("poppler" ,poppler)
|
poppler
|
||||||
("poppler-data" ,poppler-data)
|
poppler-data
|
||||||
("util-linux-lib" ,util-linux "lib"))) ; for libuuid
|
`(,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"))))))
|
|
||||||
(synopsis "PDF to DjVu converter")
|
(synopsis "PDF to DjVu converter")
|
||||||
(description
|
(description
|
||||||
"@code{pdf2djvu} creates DjVu files from PDF files.
|
"@code{pdf2djvu} creates DjVu files from PDF files.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user