summaryrefslogtreecommitdiff
path: root/gnu/packages/python-xyz.scm
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2025-07-18 15:48:28 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-09-25 09:36:00 +0100
commit912920236a6dad69b77772057cd65626284ce658 (patch)
treeffa147c13fa1f06e3032a6eb1a1563d0d77e460f /gnu/packages/python-xyz.scm
parentb1839a4af4e58b5d74a241192138ffd5ec876afe (diff)
gnu: python-pyzmq: Update to 27.0.1.
The project does not ship bundled source of zeromq and cythonized files, instead it use <buildutils/bundle.py> to ship as a build option relying on system libraries. The build is controlled via CMakeLists.txt. * gnu/packages/python-xyz.scm (python-pyzmq): Update to 27.0.1. Use G-expressions. [source] <snippet>: Remove all as no longer required. [build-system]: Use pyproject. [arguments] <configure-flags>: Remove as no longer required. <phases>: Remove 'build-extensions and replace by 'delete-source which is chepper than to rebuild it once again; use default 'check. [inputs]: Add libsodium. [native-inputs]: Remove pkg-config, and python-tornado-6; add cmake-minimal, python-packaging, python-scikit-build-core, and python-tornado. Change-Id: I6ec22d172fb2cc542923f4d2adfe326716d482cf
Diffstat (limited to 'gnu/packages/python-xyz.scm')
-rw-r--r--gnu/packages/python-xyz.scm65
1 files changed, 25 insertions, 40 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index a7803e72e3..fe1c407c0e 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -16155,56 +16155,41 @@ applications.")
(define-public python-pyzmq
(package
(name "python-pyzmq")
- (version "25.1.0")
+ (version "27.0.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "pyzmq" version))
(sha256
- (base32 "0mw9zf0h9sgn2cchw24vyxgyi2nfpyfacr0mh072hdjx8qii1i40"))
- (snippet
- #~(begin
- (use-modules (guix build utils))
- ;; The bundled zeromq source code.
- (delete-file-recursively "bundled")
- ;; Delete cythonized files.
- (for-each delete-file
- (list "zmq/backend/cython/context.c"
- "zmq/backend/cython/_device.c"
- "zmq/backend/cython/error.c"
- "zmq/backend/cython/message.c"
- "zmq/backend/cython/_poll.c"
- "zmq/backend/cython/_proxy_steerable.c"
- "zmq/backend/cython/socket.c"
- "zmq/backend/cython/utils.c"
- "zmq/backend/cython/_version.c"
- "zmq/devices/monitoredqueue.c"))))))
- (build-system python-build-system)
+ (base32 "0jznvl7v41241pbbvwzjxi028mrfy1n5ymfjzy2783n29ch4kia5"))))
+ (build-system pyproject-build-system)
(arguments
- `(#:configure-flags
- (list (string-append "--zmq=" (assoc-ref %build-inputs "zeromq")))
- #:phases
- (modify-phases %standard-phases
- (add-before 'build 'configure
- (lambda _
- ;; Our zeromq package is built with '--enable-drafts'; also
- ;; enable draft support for pyzmq so the draft test passes.
- (setenv "ZMQ_DRAFT_API" "1")))
- (add-before 'check 'build-extensions
- (lambda _
- ;; Cython extensions have to be built before running the tests.
- (invoke "python" "setup.py" "build_ext" "--inplace")))
- (replace 'check
- (lambda* (#:key tests? #:allow-other-keys)
- (when tests?
- (invoke "pytest" "-vv")))))))
- (inputs (list zeromq))
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'build 'configure
+ (lambda _
+ ;; Our zeromq package is built with '--enable-drafts'; also
+ ;; enable draft support for pyzmq so the draft test passes.
+ (setenv "ZMQ_DRAFT_API" "1")
+ ;; Make sure to prevent building bundled libzmq.
+ (setenv "PYZMQ_NO_BUNDLE" "1")))
+ (add-before 'check 'delete-source
+ ;; To prevent loading it and skip build extensions one more times.
+ (lambda _
+ (delete-file-recursively "zmq"))))))
(native-inputs
- (list pkg-config
+ (list cmake-minimal
+ ;; python-cffi ; for PyPy
python-cython
+ python-packaging
python-pytest
python-pytest-asyncio
- python-tornado-6))
+ python-scikit-build-core
+ python-tornado))
+ (inputs
+ (list libsodium
+ zeromq))
(home-page "https://github.com/zeromq/pyzmq")
(synopsis "Python bindings for 0MQ")
(description