diff options
author | Stefano Rivera <stefanor@debian.org> | 2021-05-21 21:35:48 +0100 |
---|---|---|
committer | Stefano Rivera <stefanor@debian.org> | 2021-05-21 21:35:48 +0100 |
commit | 44edce24277f7ca93a0e08078c46af49558ae795 (patch) | |
tree | 1702b28988a6eee2b9b06e44aa3f93e1bb383470 |
Import python-libnacl_1.7.2-3.debian.tar.xz
[dgit import tarball python-libnacl 1.7.2-3 python-libnacl_1.7.2-3.debian.tar.xz]
-rw-r--r-- | changelog | 116 | ||||
-rw-r--r-- | control | 34 | ||||
-rw-r--r-- | copyright | 27 | ||||
-rwxr-xr-x | get-libsodium-depends | 5 | ||||
-rw-r--r-- | patches/32bit-kdf.patch | 24 | ||||
-rw-r--r-- | patches/series | 1 | ||||
-rwxr-xr-x | rules | 10 | ||||
-rw-r--r-- | source/format | 1 | ||||
-rw-r--r-- | watch | 3 |
9 files changed, 221 insertions, 0 deletions
diff --git a/changelog b/changelog new file mode 100644 index 0000000..5ba95c4 --- /dev/null +++ b/changelog @@ -0,0 +1,116 @@ +python-libnacl (1.7.2-3) unstable; urgency=medium + + * Team upload. + * Patch: Fix crypto_kdf_derive_from_key() on 32-bit platforms. + (Closes: #988102) + + -- Stefano Rivera <stefanor@debian.org> Fri, 21 May 2021 16:35:48 -0400 + +python-libnacl (1.7.2-2) unstable; urgency=medium + + * Add Breaks: python3-duniterpy (<< 0.60.1) (see #974655). + + -- Colin Watson <cjwatson@debian.org> Sat, 14 Nov 2020 12:40:57 +0000 + +python-libnacl (1.7.2-1) unstable; urgency=medium + + [ Ondřej Nový ] + * d/control: Update Maintainer field with new Debian Python Team + contact address. + * d/control: Update Vcs-* fields with new Debian Python Team Salsa + layout. + + [ Colin Watson ] + * New upstream release. + - Remove encoding parameter json.loads for Python 3.9 compatibility + (closes: #973199). + + -- Colin Watson <cjwatson@debian.org> Sun, 08 Nov 2020 16:48:53 +0000 + +python-libnacl (1.7.1-1) unstable; urgency=medium + + * New upstream release. + - Fix unreliability in verify tests (closes: #922259). + + -- Colin Watson <cjwatson@debian.org> Fri, 10 Jan 2020 00:00:35 +0000 + +python-libnacl (1.6.1-5) unstable; urgency=medium + + [ Ondřej Nový ] + * Use debhelper-compat instead of debian/compat. + + [ Sandro Tosi ] + * Drop python2 support; Closes: #937888 + + -- Sandro Tosi <morph@debian.org> Sun, 15 Dec 2019 17:46:47 -0500 + +python-libnacl (1.6.1-4) unstable; urgency=medium + + [ Ondřej Nový ] + * d/watch: Use https protocol + * d/control: Remove ancient X-Python-Version field + * d/control: Remove ancient X-Python3-Version field + * Convert git repository from git-dpm to gbp layout + + [ Colin Watson ] + * Update Homepage field to use HTTPS. + + -- Colin Watson <cjwatson@debian.org> Fri, 01 Mar 2019 12:54:35 +0000 + +python-libnacl (1.6.1-3) unstable; urgency=medium + + * Move VCS to salsa.debian.org. + * Switch Maintainer to the Debian Python Modules Team. + + -- Colin Watson <cjwatson@debian.org> Sat, 10 Feb 2018 02:38:53 +0000 + +python-libnacl (1.6.1-2) unstable; urgency=medium + + * Rebuild against libsodium23 (closes: #885934). + + -- Colin Watson <cjwatson@debian.org> Sun, 31 Dec 2017 15:30:10 +0000 + +python-libnacl (1.6.1-1) unstable; urgency=medium + + * New upstream release. + * Set Rules-Requires-Root: no. + * Policy version 4.1.1. + + -- Colin Watson <cjwatson@debian.org> Mon, 06 Nov 2017 16:41:49 +0000 + +python-libnacl (1.5.2-3) unstable; urgency=medium + + * Restore crypto_aead_aes256gcm_*BYTES on old CPUs. + + -- Colin Watson <cjwatson@debian.org> Fri, 04 Aug 2017 10:05:26 +0100 + +python-libnacl (1.5.2-2) unstable; urgency=medium + + * Check whether AEAD functions are available (closes: #869241). + * Policy version 4.0.0. + + -- Colin Watson <cjwatson@debian.org> Thu, 03 Aug 2017 10:40:21 +0100 + +python-libnacl (1.5.2-1) unstable; urgency=medium + + * New upstream release. + + -- Colin Watson <cjwatson@debian.org> Fri, 21 Jul 2017 19:35:32 +0100 + +python-libnacl (1.5.1-1) unstable; urgency=medium + + * New upstream release. + + -- Colin Watson <cjwatson@debian.org> Tue, 20 Jun 2017 11:08:46 +0100 + +python-libnacl (1.5.0-1) unstable; urgency=medium + + * New upstream release. + + -- Colin Watson <cjwatson@debian.org> Thu, 15 Sep 2016 11:05:44 +0100 + +python-libnacl (1.4.5-1) unstable; urgency=medium + + * Initial release (closes: #781984). + + -- Colin Watson <cjwatson@debian.org> Tue, 24 May 2016 15:50:00 +0100 @@ -0,0 +1,34 @@ +Source: python-libnacl +Section: python +Priority: optional +Maintainer: Debian Python Team <team+python@tracker.debian.org> +Uploaders: Colin Watson <cjwatson@debian.org> +Build-Depends: debhelper-compat (= 9), + dh-python, + libsodium-dev (>= 1.0.15), + pkg-config, + python3 (>= 3.1.2-8~), + python3-all, + python3-nose, + python3-setuptools, +Standards-Version: 4.1.1 +Vcs-Git: https://salsa.debian.org/python-team/packages/python-libnacl.git +Vcs-Browser: https://salsa.debian.org/python-team/packages/python-libnacl +Homepage: https://libnacl.readthedocs.io/ +Rules-Requires-Root: no + +Package: python3-libnacl +Architecture: all +Multi-Arch: foreign +Depends: ${libsodium:Depends}, + ${misc:Depends}, + ${python3:Depends} +Breaks: python3-duniterpy (<< 0.60.1) +Description: Python 3 bindings for libsodium based on ctypes + This library is used to gain direct access to the functions exposed by + Daniel J. Bernstein's nacl library via libsodium. It has been constructed + to maintain extensive documentation on how to use nacl as well as being + completely portable. + . + This library is unrelated to Native Client (NaCl), the sandbox used in + Chromium. diff --git a/copyright b/copyright new file mode 100644 index 0000000..14702e4 --- /dev/null +++ b/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: libnacl +Source: http://pypi.python.org/pypi/libnacl/ + +Files: * +Copyright: Copyright {2014} Thomas S Hatch +License: Apache-2.0 + +Files: debian/* +Copyright: Copyright (C) 2016 Colin Watson <cjwatson@debian.org> +License: Apache-2.0 + +License: Apache-2.0 + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + . + http://www.apache.org/licenses/LICENSE-2.0 + . + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + . + On Debian and Debian-based systems, a copy of the License is available in + /usr/share/common-licenses/Apache-2.0. diff --git a/get-libsodium-depends b/get-libsodium-depends new file mode 100755 index 0000000..5282722 --- /dev/null +++ b/get-libsodium-depends @@ -0,0 +1,5 @@ +#! /bin/sh +set -e + +libdir="$(pkg-config --variable=libdir libsodium)" +objdump -p "$libdir/libsodium.so" | sed -ne '/ SONAME / { s/.* //; s/\.so\.//; p }' diff --git a/patches/32bit-kdf.patch b/patches/32bit-kdf.patch new file mode 100644 index 0000000..fc3183c --- /dev/null +++ b/patches/32bit-kdf.patch @@ -0,0 +1,24 @@ +From: =?utf-8?b?TWljaGHFgiBHw7Nybnk=?= <mgorny@gentoo.org> +Date: Fri, 21 May 2021 16:25:27 -0400 +Subject: Fix crypto_kdf_derive_from_key() on 32-bit platforms + +Bug-Upstream: https://github.com/saltstack/libnacl/issues/126 +Bug-Debian: https://bugs.debian.org/988102 +Forwarded: https://github.com/saltstack/libnacl/pull/130 +--- + libnacl/__init__.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/libnacl/__init__.py b/libnacl/__init__.py +index 98a53d9..f799b23 100644 +--- a/libnacl/__init__.py ++++ b/libnacl/__init__.py +@@ -1195,7 +1195,7 @@ def crypto_kdf_derive_from_key(subkey_size, subkey_id, context, master_key): + """ + 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 + + diff --git a/patches/series b/patches/series new file mode 100644 index 0000000..e81c8d4 --- /dev/null +++ b/patches/series @@ -0,0 +1 @@ +32bit-kdf.patch @@ -0,0 +1,10 @@ +#! /usr/bin/make -f + +export PYBUILD_NAME := libnacl +export PYBUILD_TEST_NOSE := 1 + +%: + dh $@ --with python3 --buildsystem=pybuild + +override_dh_gencontrol: + dh_gencontrol -- -Vlibsodium:Depends="$(shell debian/get-libsodium-depends)" diff --git a/source/format b/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/source/format @@ -0,0 +1 @@ +3.0 (quilt) @@ -0,0 +1,3 @@ +version=3 +opts=uversionmangle=s/(rc|a|b|c)/~$1/ \ +https://pypi.debian.net/libnacl/libnacl-(.+)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz))) |