forked from pool/python-libnacl
Accepting request 1153722 from devel:languages:python
- Update to 2.1.0: * Added classes to the libnacl.aead module allowing for the use of XChaCha20-Poly1305-IETF, ChaCha20-Poly1305-IETF, and AES256-GCM. * Added the libnacl.kx module. This module contains the ExchangeKey class. - Switch to autosetup and pyproject macros. - Drop patch crypto_kdf_derive.patch, no longer required. OBS-URL: https://build.opensuse.org/request/show/1153722 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-libnacl?expand=0&rev=23
This commit is contained in:
@@ -1,12 +0,0 @@
|
||||
diff -rub libnacl-1.7.2/libnacl/__init__.py libnacl-1.7.2-patched/libnacl/__init__.py
|
||||
--- libnacl-1.7.2/libnacl/__init__.py 2020-11-03 22:34:59.000000000 +0100
|
||||
+++ libnacl-1.7.2-patched/libnacl/__init__.py 2021-06-12 00:31:42.133601308 +0200
|
||||
@@ -1180,7 +1180,7 @@
|
||||
'''
|
||||
size = int(subkey_size)
|
||||
buf = ctypes.create_string_buffer(size)
|
||||
- nacl.crypto_kdf_derive_from_key(buf, subkey_size, subkey_id, context, master_key)
|
||||
+ nacl.crypto_kdf_derive_from_key(buf, subkey_size, ctypes.c_ulonglong(subkey_id), context, master_key)
|
||||
return buf.raw
|
||||
|
||||
# Key Exchange API
|
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:bbfbb595ba6acfdd8f40a143bddb62c54fb53580330ed6ba3dca1ba4036437bb
|
||||
size 43343
|
3
libnacl-2.1.0.tar.gz
Normal file
3
libnacl-2.1.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:4bef42f811f5c8d2509a34efd64e9028b223aa06fb52127cd4dad9301edde6f5
|
||||
size 46400
|
@@ -1,3 +1,13 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Mar 1 03:20:14 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
|
||||
- Update to 2.1.0:
|
||||
* Added classes to the libnacl.aead module allowing for the use of
|
||||
XChaCha20-Poly1305-IETF, ChaCha20-Poly1305-IETF, and AES256-GCM.
|
||||
* Added the libnacl.kx module. This module contains the ExchangeKey class.
|
||||
- Switch to autosetup and pyproject macros.
|
||||
- Drop patch crypto_kdf_derive.patch, no longer required.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jul 5 08:28:58 UTC 2023 - ecsos <ecsos@opensuse.org>
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-libnacl
|
||||
#
|
||||
# Copyright (c) 2021 SUSE LLC
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -18,15 +18,16 @@
|
||||
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-libnacl
|
||||
Version: 1.7.2
|
||||
Version: 2.1.0
|
||||
Release: 0
|
||||
Summary: Python bindings for libsodium based on ctypes
|
||||
License: Apache-2.0
|
||||
URL: https://github.com/saltstack/libnacl
|
||||
Source0: https://github.com/saltstack/libnacl/archive/v%{version}.tar.gz#/libnacl-%{version}.tar.gz
|
||||
Patch0: crypto_kdf_derive.patch
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module poetry}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: python-rpm-macros
|
||||
@@ -34,6 +35,7 @@ BuildRequires: pkgconfig(libsodium)
|
||||
# This will need updating and verification but smart magic is not copied by
|
||||
# singlespec macros
|
||||
Requires: libsodium23
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
@@ -42,14 +44,13 @@ It has been constructed to maintain extensive documentation on how to use nacl a
|
||||
in libnacl/__init__.py can be pulled out and placed directly in any project to give a single file binding to all of nacl.
|
||||
|
||||
%prep
|
||||
%setup -q -n libnacl-%{version}
|
||||
%patch0 -p1
|
||||
%autosetup -p1 -n libnacl-%{version}
|
||||
|
||||
%build
|
||||
%python_build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%pyproject_install
|
||||
%python_expand %fdupes %{buildroot}/%{$python_sitelib}
|
||||
|
||||
%check
|
||||
@@ -58,6 +59,7 @@ in libnacl/__init__.py can be pulled out and placed directly in any project to g
|
||||
%files %{python_files}
|
||||
%license LICENSE
|
||||
%doc README.rst
|
||||
%{python_sitelib}/*
|
||||
%{python_sitelib}/libnacl
|
||||
%{python_sitelib}/libnacl-%{version}.dist-info
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user