python-PyNaCl
Port variant v13
Summary Binding to NaCl Cryptography library (3.13)
Package version 1.6.2
Homepage https://github.com/pyca/pynacl/
Keywords python
Maintainer Python Automaton
License Not yet specified
Other variants v14
Ravenports Buildsheet | History
Ravensource Port Directory | History
Last modified 18 JAN 2026, 19:34:33 UTC
Port created 05 FEB 2019, 15:55:37 UTC
Subpackage Descriptions
single =============================================== PyNaCl: Python binding to the libsodium library =============================================== :alt: Latest Version PyNaCl is a Python binding to `libsodium`_, which is a fork of the `Networking and Cryptography library`_. These libraries have a stated goal of improving usability, security and speed. It supports Python 3.8+ as well as PyPy 3. .. _libsodium: https://github.com/jedisct1/libsodium .. _Networking and Cryptography library: https://nacl.cr.yp.to/ Features -------- * Digital signatures * Secret-key encryption * Public-key encryption * Hashing and message authentication * Password based key derivation and password hashing `Changelog`_ ------------ .. _Changelog: https://pynacl.readthedocs.io/en/latest/changelog/ Installation ============ Binary wheel install -------------------- PyNaCl ships as a binary wheel on macOS, Windows and Linux manylinux1 [#many]_ , so all dependencies are included. Make sure you have an up-to-date pip and run: .. code-block:: console $ pip install pynacl Faster wheel build ------------------ You can define the environment variable LIBSODIUM_MAKE_ARGS to pass arguments to make and enable `parallelization`_: .. code-block:: console $ LIBSODIUM_MAKE_ARGS=-j4 pip install pynacl Linux source build ------------------ PyNaCl relies on `libsodium`_, a portable C library. A copy is bundled with PyNaCl so to install you can run: .. code-block:: console $ pip install pynacl If you'd prefer to use the version of libsodium provided by your distribution, you can disable the bundled copy during install by running: .. code-block:: console $ SODIUM_INSTALL=system pip install pynacl .. warning:: Usage of the legacy easy_install command provided by setuptools is generally discouraged, and is completely unsupported in PyNaCl's case. .. _parallelization: https://www.gnu.org/software/make/manual/html_node/Parallel.html .. _libsodium: https://github.com/jedisct1/libsodium .. [#many] [manylinux1 wheels] are built on a baseline linux environment based on Centos 5.11 and should work on most x86 and x86_64 glibc based linux environments. GNU Make (gmake) may be required for newer versions of PyNaCl. You can set the binary to use by setting the MAKE environment variable: .. code-block:: console $ MAKE=gmake pip install pynacl Changelog ========= 1.6.2 (2026-01-01) ------------------ * Updated libsodium to 1.0.20-stable (2025-12-31 build) to resolve ``CVE-2025-69277``.
Configuration Switches (platform-specific settings discarded)
PY313 ON Build using Python 3.13 PY314 OFF Build using Python 3.14
Package Dependencies by Type
Build (only) libsodium:dev:std
python-cffi:single:v13
gmake:primary:std
python313:dev:std
python-pip:single:v13
python-setuptools:single:v13
python-wheel:single:v13
python-build:single:v13
python-installer:single:v13
autoselect-python:single:std
Build and Runtime libsodium:primary:std
python-cffi:single:v13
python313:primary:std
Download groups
main mirror://PYPI/P/PyNaCl
Distribution File Information
018494d6d696ae03c7e656e5e74cdfd8ea1326962cc401bcf018f1ed8436811c 3511692 python-src/pynacl-1.6.2.tar.gz
Ports that require python-PyNaCl:v13
python-paramiko:v13 SSH2 protocol library (3.13)