gnu: python-libarchive-c: Update to 2.8.

* gnu/packages/python.scm (python-libarchive-c): Update to 2.8.
[arguments]: Replace 'check' phase.
[native-inputs]: Add PYTHON-MOCK and PYTHON-PYTEST.
This commit is contained in:
Marius Bakke 2018-09-10 16:32:39 +02:00
parent ba0052e8ae
commit 418ec0adc9
No known key found for this signature in database
GPG Key ID: A2A06DF2A33A54FA
1 changed files with 8 additions and 3 deletions

View File

@ -6624,13 +6624,13 @@ a hash value.")
(define-public python-libarchive-c (define-public python-libarchive-c
(package (package
(name "python-libarchive-c") (name "python-libarchive-c")
(version "2.2") (version "2.8")
(source (origin (source (origin
(method url-fetch) (method url-fetch)
(uri (pypi-uri "libarchive-c" version)) (uri (pypi-uri "libarchive-c" version))
(sha256 (sha256
(base32 (base32
"0z4r7v3dhd6b3120mav05ff08srih176r2rg5k8kn7mjd9pslm2x")))) "0qg0v1s9c1xdk9philhnv8k6c6nicvnvfwlc0j9srg90jmdlvm06"))))
(build-system python-build-system) (build-system python-build-system)
(arguments (arguments
'(#:phases (modify-phases %standard-phases '(#:phases (modify-phases %standard-phases
@ -6642,7 +6642,12 @@ a hash value.")
(substitute* "libarchive/ffi.py" (substitute* "libarchive/ffi.py"
(("find_library\\('archive'\\)") (("find_library\\('archive'\\)")
(string-append "'" libarchive (string-append "'" libarchive
"/lib/libarchive.so'"))))))))) "/lib/libarchive.so'"))))))
(replace 'check
(lambda _ (invoke "pytest" "-vv"))))))
(native-inputs
`(("python-mock" ,python-mock)
("python-pytest" ,python-pytest)))
(inputs (inputs
`(("libarchive" ,libarchive))) `(("libarchive" ,libarchive)))
(home-page "https://github.com/Changaco/python-libarchive-c") (home-page "https://github.com/Changaco/python-libarchive-c")