From 0298195c968f611c2c1517b99fd623a41dba9fa9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Tue, 6 Jun 2023 15:15:11 +0200 Subject: [PATCH] Sync from SUSE:ALP:Source:Standard:1.0 python-PyNaCl revision d01f98c1ce4abaf63e10357bfc98481e --- .gitattributes | 23 +++++++++ PyNaCl-1.5.0.tar.gz | 3 ++ python-PyNaCl.changes | 110 ++++++++++++++++++++++++++++++++++++++++++ python-PyNaCl.spec | 72 +++++++++++++++++++++++++++ 4 files changed, 208 insertions(+) create mode 100644 .gitattributes create mode 100644 PyNaCl-1.5.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..fecc750 --- /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/PyNaCl-1.5.0.tar.gz b/PyNaCl-1.5.0.tar.gz new file mode 100644 index 0000000..ce63158 --- /dev/null +++ b/PyNaCl-1.5.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8ac7448f09ab85811607bdd21ec2464495ac8b7c66d146bf545b0f08fb9220ba +size 3392854 diff --git a/python-PyNaCl.changes b/python-PyNaCl.changes new file mode 100644 index 0000000..50e048d --- /dev/null +++ b/python-PyNaCl.changes @@ -0,0 +1,110 @@ +------------------------------------------------------------------- +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 + +------------------------------------------------------------------- +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 + +------------------------------------------------------------------- +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..f434b11 --- /dev/null +++ b/python-PyNaCl.spec @@ -0,0 +1,72 @@ +# +# spec file for package python-PyNaCl +# +# Copyright (c) 2023 SUSE LLC +# +# 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/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%define skip_python2 1 +%{?sle15_python_module_pythons} +Name: python-PyNaCl +Version: 1.5.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 +# https://github.com/pyca/pynacl/commit/a8c08b18f3a2e8f2140c531afaf42715fcab68e7 +BuildRequires: %{python_module cffi} +BuildRequires: %{python_module devel} +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" +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}/%{$python_sitearch} + +%check +%pytest_arch + +%files %{python_files} +%license LICENSE +%doc README.rst +%{python_sitearch}/* + +%changelog