gnu: python-celery: Update to 5.2.6 and enable tests.
* gnu/packages/python-xyz.scm (python-celery): Update to 5.2.6. [tests?]: Delete argument. [phases]{delete-integration-tests}: Delete phase. {relax-requirements}: New phase. {check}: Ignore the "t/integration" directory and the t/unit/backends/test_mongodb.py file. Remove skip directive for test_all_reqs_enabled_in_tests. [native-inputs]: Add python-dnspython. [propagated-inputs]: Delete python-boto3 and python-cryptography.master
parent
daf2b25755
commit
f35d65707c
|
@ -15821,31 +15821,37 @@ Python 2.4 and 2.5, and will draw its fixes/improvements from python-trunk.")
|
||||||
(define-public python-celery
|
(define-public python-celery
|
||||||
(package
|
(package
|
||||||
(name "python-celery")
|
(name "python-celery")
|
||||||
(version "5.1.2") ;newer versions require python-click>=8
|
(version "5.2.6")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (pypi-uri "celery" version))
|
(uri (pypi-uri "celery" version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32 "1c6lw31i3v81fyj4yn37lbvv70xdgb389iccirzyjr992vlkv6ld"))))
|
(base32 "109lcqarrbmh95sk1dm4yxayq1h3i27f4w23ndk64mqgyfnqqffi"))))
|
||||||
(build-system python-build-system)
|
(build-system python-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
'(#:tests? #f
|
'(#:phases
|
||||||
#:phases
|
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(add-after 'unpack 'delete-integration-tests
|
(add-after 'unpack 'relax-requirements
|
||||||
(lambda _
|
(lambda _
|
||||||
(delete-file-recursively "t/integration"))) ;hangs tests
|
(substitute* "requirements/default.txt"
|
||||||
|
(("pytz.*")
|
||||||
|
"pytz\n"))))
|
||||||
(replace 'check
|
(replace 'check
|
||||||
(lambda* (#:key inputs outputs tests? #:allow-other-keys)
|
(lambda* (#:key tests? #:allow-other-keys)
|
||||||
(when tests?
|
(when tests?
|
||||||
(add-installed-pythonpath inputs outputs)
|
(invoke "python" "-m" "pytest" "t"
|
||||||
(invoke "python" "-m" "pytest" "t" "-k"
|
"--ignore" "t/integration" ;hangs tests
|
||||||
(string-append ; AssertionErrors
|
;; The MongoDB backend test appears to expect an older
|
||||||
"not test_check_privileges_no_fchown"
|
;; version of MongoDB which provided its own bson
|
||||||
" and not test_all_reqs_enabled_in_tests"))))))))
|
;; module, fails with " AttributeError: module 'bson'
|
||||||
|
;; has no attribute 'encode'".
|
||||||
|
"--ignore" "t/unit/backends/test_mongodb.py"
|
||||||
|
;; AssertionErrors
|
||||||
|
"-k" "not test_check_privileges_no_fchown ")))))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list python-case
|
(list python-case
|
||||||
|
python-dnspython
|
||||||
python-flaky
|
python-flaky
|
||||||
python-iniconfig
|
python-iniconfig
|
||||||
python-moto
|
python-moto
|
||||||
|
@ -15857,12 +15863,10 @@ Python 2.4 and 2.5, and will draw its fixes/improvements from python-trunk.")
|
||||||
python-toml))
|
python-toml))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
(list python-billiard
|
(list python-billiard
|
||||||
python-boto3
|
|
||||||
python-click
|
python-click
|
||||||
python-click-didyoumean
|
python-click-didyoumean
|
||||||
python-click-plugins
|
python-click-plugins
|
||||||
python-click-repl
|
python-click-repl
|
||||||
python-cryptography
|
|
||||||
python-kombu
|
python-kombu
|
||||||
python-pytz
|
python-pytz
|
||||||
python-vine))
|
python-vine))
|
||||||
|
|
Reference in New Issue