From 33e45bc65c7aefcdc10c70634a8051edb7feaa8db85b8468ec4ce60a1c5ab8c3 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Sun, 14 Sep 2025 22:38:01 +0000 Subject: [PATCH] - update to 1.6.0: * BACKWARDS INCOMPATIBLE: Removed support for Python 3.6 and 3.7. * Added support for the low level AEAD AES bindings. * Added support for crypto_core_ed25519_from_uniform. * Update libsodium to 1.0.20-stable (2025-08-27 build). * Added support for free-threaded Python 3.14. * Added support for Windows on ARM wheels. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyNaCl?expand=0&rev=28 --- .gitattributes | 23 +++++++ .gitignore | 1 + pynacl-1.6.0.tar.gz | 3 + python-PyNaCl.changes | 138 ++++++++++++++++++++++++++++++++++++++++++ python-PyNaCl.spec | 71 ++++++++++++++++++++++ 5 files changed, 236 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 pynacl-1.6.0.tar.gz create mode 100644 python-PyNaCl.changes create mode 100644 python-PyNaCl.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/pynacl-1.6.0.tar.gz b/pynacl-1.6.0.tar.gz new file mode 100644 index 0000000..df6b8a8 --- /dev/null +++ b/pynacl-1.6.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cb36deafe6e2bce3b286e5d1f3e1c246e0ccdb8808ddb4550bb2792f2df298f2 +size 3505641 diff --git a/python-PyNaCl.changes b/python-PyNaCl.changes new file mode 100644 index 0000000..7517d65 --- /dev/null +++ b/python-PyNaCl.changes @@ -0,0 +1,138 @@ +------------------------------------------------------------------- +Sun Sep 14 22:37:41 UTC 2025 - Dirk Müller + +- update to 1.6.0: + * BACKWARDS INCOMPATIBLE: Removed support for Python 3.6 and + 3.7. + * Added support for the low level AEAD AES bindings. + * Added support for crypto_core_ed25519_from_uniform. + * Update libsodium to 1.0.20-stable (2025-08-27 build). + * Added support for free-threaded Python 3.14. + * Added support for Windows on ARM wheels. + +------------------------------------------------------------------- +Tue May 6 13:45:01 UTC 2025 - Markéta Machová + +- Convert to pip-based build + +------------------------------------------------------------------- +Fri Apr 21 12:21:05 UTC 2023 - Dirk Müller + +- add sle15_python_module_pythons (jsc#PED-68) + +------------------------------------------------------------------- +Thu Apr 13 22:43:48 UTC 2023 - Matej Cepl + +- Make calling of %{sle15modernpython} optional. + +------------------------------------------------------------------- +Fri Sep 16 12:01:41 UTC 2022 - pgajdos@suse.com + +- python-six not required + +------------------------------------------------------------------- +Thu Jul 21 10:16:18 UTC 2022 - John Paul Adrian Glaubitz + +- Update in SLE-15 (bsc#1199282, jsc#PM-3243, jsc#SLE-24629) + +------------------------------------------------------------------- +Sun Jan 9 18:54:14 UTC 2022 - Michael Ströder + +- Update to 1.5.0 + * Removed support for Python 2.7 and Python 3.5. + * Changes of binary wheel distributions. + * Update libsodium to 1.0.18-stable (July 25, 2021 release). + * Add inline type hints. + +------------------------------------------------------------------- +Mon Nov 8 10:39:20 UTC 2021 - Dirk Müller + +- six is needed by testsuite + +------------------------------------------------------------------- +Sun Jul 5 14:42:24 UTC 2020 - Michael Ströder + +- Update to 1.4.0 + * Update ``libsodium`` to 1.0.18. + * **BACKWARDS INCOMPATIBLE:** We no longer distribute 32-bit ``manylinux1`` + wheels. Continuing to produce them was a maintenance burden. + * Added support for Python 3.8, and removed support for Python 3.4. + * Add low level bindings for extracting the seed and the public key + from crypto_sign_ed25519 secret key + * Add low level bindings for deterministic random generation. + * Add ``wheel`` and ``setuptools`` setup_requirements in ``setup.py`` (#485) + * Fix checks on very slow builders (#481, #495) + * Add low-level bindings to ed25519 arithmetic functions + * Update low-level blake2b state implementation + * Fix wrong short-input behavior of SealedBox.decrypt() (#517) + * Raise CryptPrefixError exception instead of InvalidkeyError when trying + to check a password against a verifier stored in a unknown format (#519) + * Add support for minimal builds of libsodium. Trying to call functions + not available in a minimal build will raise an UnavailableError + exception. To compile a minimal build of the bundled libsodium, set + the SODIUM_INSTALL_MINIMAL environment variable to any non-empty + string (e.g. ``SODIUM_INSTALL_MINIMAL=1``) for setup. +- removed obsolete back-port patch: + * fix_tests.patch + * hypothesis-no-unilmited.patch + * python-PyNaCl-hypothesis-remove-average_size.patch + +------------------------------------------------------------------- +Fri Apr 17 06:48:28 UTC 2020 - Tomáš Chvátal + +- Fix tests with latest hypothesis: + * hypothesis-no-unilmited.patch + +------------------------------------------------------------------- +Tue Jan 21 13:46:13 UTC 2020 - pgajdos@suse.com + +- python-PyNaCl requires python-cffi as demonstrated by python-dkimpy + tests [SLE-7686] [bsc#1161557] + +------------------------------------------------------------------- +Wed Sep 25 14:15:57 UTC 2019 - Tomáš Chvátal + +- Add missing runtime dependency on cffi + +------------------------------------------------------------------- +Thu Jul 18 11:12:47 UTC 2019 - Ondřej Súkup + +- add fix_tests.patch for new pytest + +------------------------------------------------------------------- +Mon Jun 3 14:17:29 UTC 2019 - pgajdos@suse.com + +- run the testsuite +- added patches + https://github.com/pyca/pynacl/commit/a8c08b18f3a2e8f2140c531afaf42715fcab68e7 + + python-PyNaCl-hypothesis-remove-average_size.patch + +------------------------------------------------------------------- +Wed Dec 12 13:05:57 UTC 2018 - Antonio Larrosa + +- Update to 1.3.0 + * Added support for Python 3.7. + * Run and test all code examples in PyNaCl docs through sphinx's doctest + builder. + * Add low-level bindings for chacha20-poly1305 AEAD constructions. + * Add low-level bindings for the chacha20-poly1305 secretstream + constructions. + * Add low-level bindings for ed25519ph pre-hashed signing construction. + * Add low-level bindings for constant-time increment and addition on + fixed-precision big integers represented as little-endian byte sequences. + * Add low-level bindings for the ISO/IEC 7816-4 compatible padding API. + * Add low-level bindings for libsodium's crypto_kx... key exchange + construction. + * Set hypothesis deadline to None in tests/test_pwhash.py to avoid incorrect + test failures on slower processor architectures. + +------------------------------------------------------------------- +Fri Dec 22 14:13:04 UTC 2017 - mimi.vx@gmail.com + +- update to 1.2.1 +- use system libsodium + +------------------------------------------------------------------- +Sun Jun 11 16:20:28 UTC 2017 - mimi.vx@gmail.com + +- initial import diff --git a/python-PyNaCl.spec b/python-PyNaCl.spec new file mode 100644 index 0000000..140bbe7 --- /dev/null +++ b/python-PyNaCl.spec @@ -0,0 +1,71 @@ +# +# spec file for package python-PyNaCl +# +# Copyright (c) 2025 SUSE LLC and contributors +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%{?sle15_python_module_pythons} +Name: python-PyNaCl +Version: 1.6.0 +Release: 0 +Summary: Python binding to the Networking and Cryptography (NaCl) library +License: Apache-2.0 +Group: Development/Languages/Python +URL: https://github.com/pyca/pynacl/ +Source: https://pypi.org/packages/source/P/PyNaCl/pynacl-%{version}.tar.gz +BuildRequires: %{python_module cffi} +BuildRequires: %{python_module devel} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module pycparser} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: pkgconfig +BuildRequires: python-rpm-macros +BuildRequires: pkgconfig(libsodium) >= 1.0.18 +Requires: python-cffi +# SECTION test requirements +BuildRequires: %{python_module hypothesis >= 3.27.0} +BuildRequires: %{python_module pytest >= 3.2.1} +# /SECTION +%python_subpackages + +%description +PyNaCl is a Python binding to the `Networking and Cryptography library`_, +a crypto library with the stated goal of improving usability, security and +speed. + +%prep +%setup -q -n pynacl-%{version} +rm -Rf src/libsodium + +%build +export SODIUM_INSTALL="system" +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}/%{$python_sitearch} + +%check +%pytest_arch + +%files %{python_files} +%license LICENSE +%doc README.rst +%{python_sitearch}/nacl +%{python_sitearch}/[Pp]y[Nn]a[Cc]l-%{version}*-info + +%changelog