gnu: python-rapidjson: Update to 1.10.
* gnu/packages/python-web.scm (python-rapidjson): Update to 1.10. [source]: Simplify snippet. [arguments]: Run tests conditionally; do not delete test files.master
parent
00cf71df80
commit
182fbbb009
|
@ -6162,17 +6162,17 @@ major web browsers.")
|
||||||
(define-public python-rapidjson
|
(define-public python-rapidjson
|
||||||
(package
|
(package
|
||||||
(name "python-rapidjson")
|
(name "python-rapidjson")
|
||||||
(version "0.9.1")
|
(version "1.10")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (pypi-uri "python-rapidjson" version))
|
(uri (pypi-uri "python-rapidjson" version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"18cl2dhx3gds5vg52jxmh9wjlbiy8dx06c3n482rfpdi9dzbv05d"))
|
"0h1m9m4a5rlf5hw6ak7z3qbgdhmqarzxw9d140mcf7mrxpswpzmc"))
|
||||||
(modules '((guix build utils)))
|
(modules '((guix build utils)))
|
||||||
(snippet
|
(snippet
|
||||||
'(begin (delete-file-recursively "rapidjson") #t))))
|
'(delete-file-recursively "rapidjson"))))
|
||||||
(build-system python-build-system)
|
(build-system python-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:configure-flags
|
`(#:configure-flags
|
||||||
|
@ -6188,12 +6188,9 @@ major web browsers.")
|
||||||
(assoc-ref %build-inputs "rapidjson")
|
(assoc-ref %build-inputs "rapidjson")
|
||||||
"/include/rapidjson"))))
|
"/include/rapidjson"))))
|
||||||
(replace 'check
|
(replace 'check
|
||||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
(lambda* (#:key tests? #:allow-other-keys)
|
||||||
(add-installed-pythonpath inputs outputs)
|
(when tests?
|
||||||
;; Some tests are broken.
|
(invoke "python" "-m" "pytest" "tests")))))))
|
||||||
(delete-file "tests/test_base_types.py")
|
|
||||||
(delete-file "tests/test_validator.py")
|
|
||||||
(invoke "python" "-m" "pytest" "tests"))))))
|
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list rapidjson python-pytest python-pytz))
|
(list rapidjson python-pytest python-pytz))
|
||||||
(home-page "https://github.com/python-rapidjson/python-rapidjson")
|
(home-page "https://github.com/python-rapidjson/python-rapidjson")
|
||||||
|
|
Reference in New Issue