# Buildsheet autogenerated by ravenadm tool -- Do not edit. NAMEBASE= python-PyNaCl VERSION= 1.6.1 KEYWORDS= python VARIANTS= v13 v14 SDESC[v13]= Binding to NaCl Cryptography library (3.13) SDESC[v14]= Binding to NaCl Cryptography library (3.14) HOMEPAGE= https://github.com/pyca/pynacl/ CONTACT= Python_Automaton[python@ironwolf.systems] DOWNLOAD_GROUPS= main SITES[main]= PYPI/P/PyNaCl DISTFILE[1]= pynacl-1.6.1.tar.gz:main DIST_SUBDIR= python-src DF_INDEX= 1 SPKGS[v13]= single SPKGS[v14]= single OPTIONS_AVAILABLE= PY313 PY314 OPTIONS_STANDARD= none VOPTS[v13]= PY313=ON PY314=OFF VOPTS[v14]= PY313=OFF PY314=ON BUILD_DEPENDS= libsodium:dev:std BUILDRUN_DEPENDS= libsodium:primary:std USES= gmake DISTNAME= pynacl-1.6.1 GENERATED= yes INSTALL_REQ_TOOLCHAIN= yes [PY313].BUILDRUN_DEPENDS_ON= python-cffi:single:v13 [PY313].BUILD_DEPENDS_ON= python-cffi:single:v13 [PY313].USES_ON= python:v13,pep517 [PY314].BUILDRUN_DEPENDS_ON= python-cffi:single:v14 [PY314].BUILD_DEPENDS_ON= python-cffi:single:v14 [PY314].USES_ON= python:v14,pep517 pre-configure: # disable pic on BSD* to fix ld: internal error in relocate_tls, at x86_64.cc:5195 # gmake is required[B if [ "${OPSYS}" = "Linux" ]; then \ ${REINPLACE_CMD} -e 's|"make"|"gmake"|; s|with-pic"|with-pic", "--build=${CONFIGURE_TARGET}"|' ${WRKSRC}/setup.py;\ else \ ${REINPLACE_CMD} -e 's|"make"|"gmake"|; s|with-pic"|build=${CONFIGURE_TARGET}"|' ${WRKSRC}/setup.py;\ fi pre-configure-sunos: # fails one library test ${SED} -i.bak.sunos -e '/make.*check/d' ${WRKSRC}/setup.py [FILE:2567:descriptions/desc.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.1 (2025-11-10) ------------------ * The MAKE environment variable can now be used to specify the make binary that should be used in the build process. [FILE:109:distinfo] 8d361dac0309f2b6ad33b349a56cd163c98430d409fa503b10b70b3ad66eaa1d 3506616 python-src/pynacl-1.6.1.tar.gz