gnu: python-celery: Update to 5.3.6.
* gnu/packages/python-xyz.scm (python-celery): Update to 5.3.6. [build-system]: Use pyproject-build-system. [arguments]: Replace pytz with tzdata in the relax-requirements phase. Do not override the check phase, skip tests in #:test-flags instead. [native-inputs]: Add python-pytest-click. [propagated-inputs]: Add python-tzdata. Remove python-pytz. Change-Id: I4cb6a1c6712d5b54f4d9a6731447e9459e8ff81a
This commit is contained in:
parent
1f3173786a
commit
dbe16f5a68
@ -19111,34 +19111,30 @@ 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.2.6")
|
(version "5.3.6")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (pypi-uri "celery" version))
|
(uri (pypi-uri "celery" version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32 "109lcqarrbmh95sk1dm4yxayq1h3i27f4w23ndk64mqgyfnqqffi"))))
|
(base32 "1fdacw13ij94s59l6lspl09iv6fc8h1p6399jz1h00kwfcfwf347"))))
|
||||||
(build-system python-build-system)
|
(build-system pyproject-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
'(#:phases
|
(list
|
||||||
(modify-phases %standard-phases
|
;; The MongoDB backend test appears to expect an older
|
||||||
(add-after 'unpack 'relax-requirements
|
;; version of MongoDB which provided its own bson
|
||||||
(lambda _
|
;; module, fails with " AttributeError: module 'bson'
|
||||||
(substitute* "requirements/default.txt"
|
;; has no attribute 'encode'".
|
||||||
(("pytz.*")
|
#:test-flags #~(list "--ignore" "t/unit/backends/test_mongodb.py"
|
||||||
"pytz\n"))))
|
;; AssertionError.
|
||||||
(replace 'check
|
"-k" "not test_check_privileges_no_fchown")
|
||||||
(lambda* (#:key tests? #:allow-other-keys)
|
#:phases #~(modify-phases %standard-phases
|
||||||
(when tests?
|
;; Celery requires tzdata >= 2022.7, we have 2022.1.
|
||||||
(invoke "python" "-m" "pytest" "t"
|
(add-after 'unpack 'relax-requirements
|
||||||
"--ignore" "t/integration" ;hangs tests
|
(lambda _
|
||||||
;; The MongoDB backend test appears to expect an older
|
(substitute* "requirements/default.txt"
|
||||||
;; version of MongoDB which provided its own bson
|
(("tzdata.*")
|
||||||
;; module, fails with " AttributeError: module 'bson'
|
"tzdata\n")))))))
|
||||||
;; 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-dnspython
|
||||||
@ -19148,6 +19144,7 @@ Python 2.4 and 2.5, and will draw its fixes/improvements from python-trunk.")
|
|||||||
python-msgpack
|
python-msgpack
|
||||||
python-pytest ;for pytest-subtests
|
python-pytest ;for pytest-subtests
|
||||||
python-pytest-celery
|
python-pytest-celery
|
||||||
|
python-pytest-click
|
||||||
python-pytest-subtests
|
python-pytest-subtests
|
||||||
python-pytest-timeout
|
python-pytest-timeout
|
||||||
python-toml))
|
python-toml))
|
||||||
@ -19158,7 +19155,7 @@ Python 2.4 and 2.5, and will draw its fixes/improvements from python-trunk.")
|
|||||||
python-click-plugins
|
python-click-plugins
|
||||||
python-click-repl
|
python-click-repl
|
||||||
python-kombu
|
python-kombu
|
||||||
python-pytz
|
python-tzdata
|
||||||
python-vine))
|
python-vine))
|
||||||
(home-page "https://celeryproject.org")
|
(home-page "https://celeryproject.org")
|
||||||
(synopsis "Distributed Task Queue")
|
(synopsis "Distributed Task Queue")
|
||||||
|
Loading…
Reference in New Issue
Block a user