me
/
guix
Archived
1
0
Fork 0

gnu: python-odfpy: Update to 1.4.1.

* gnu/packages/python-xyz.scm (python-odfpy): Update to 1.4.1.
[arguments]: Remove #:modules.  Rewrite test phase to use pytest.
[native-inputs]: Add PYTHON-PYTEST.
[propagated-inputs]: Add PYTHON-DEFUSEDXML.
master
Marius Bakke 2020-06-08 18:51:04 +02:00
parent 4a6974667e
commit b470122f67
No known key found for this signature in database
GPG Key ID: A2A06DF2A33A54FA
1 changed files with 10 additions and 11 deletions

View File

@ -12581,27 +12581,26 @@ discovery, monitoring and configuration.")
(define-public python-odfpy (define-public python-odfpy
(package (package
(name "python-odfpy") (name "python-odfpy")
(version "1.3.3") (version "1.4.1")
(source (origin (source (origin
(method url-fetch) (method url-fetch)
(uri (pypi-uri "odfpy" version)) (uri (pypi-uri "odfpy" version))
(sha256 (sha256
(base32 (base32
"1a6ms0w9zfhhkqhvrnynwwbxrivw6hgjc0s5k7j06npc7rq0blxw")))) "1v1qqk9p12qla85yscq2g413l3qasn6yr4ncyc934465b5p6lxnv"))))
(arguments (arguments
`(#:modules ((srfi srfi-1) `(#:phases
(guix build python-build-system)
(guix build utils))
#:phases
(modify-phases %standard-phases (modify-phases %standard-phases
(replace 'check (replace 'check
;; The test runner invokes python2 and python3 for test*.py.
;; To avoid having both in inputs, we replicate it here.
(lambda _ (lambda _
(for-each (lambda (test-file) (invoke "python" test-file)) (setenv "PYTHONPATH" (string-append "./build/lib:"
(find-files "tests" "^test.*\\.py$")) (getenv "PYTHONPATH")))
#t))))) (invoke "pytest" "-vv"))))))
(build-system python-build-system) (build-system python-build-system)
(native-inputs
`(("python-pytest" ,python-pytest)))
(propagated-inputs
`(("python-defusedxml" ,python-defusedxml)))
(home-page "https://github.com/eea/odfpy") (home-page "https://github.com/eea/odfpy")
(synopsis "Python API and tools to manipulate OpenDocument files") (synopsis "Python API and tools to manipulate OpenDocument files")
(description "Collection of libraries and utility programs written in (description "Collection of libraries and utility programs written in