summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2023-08-05 16:46:42 +0200
committerMichał Górny <mgorny@gentoo.org>2023-08-05 16:52:59 +0200
commit06e9cc8918c93fe11d9fa436ec33f4da9361eca9 (patch)
tree0b4ead466ea934341adfda362ed08e12abbabfb2 /dev-python/libnacl
parentdev-python/referencing: Bump to 0.30.2 (diff)
downloadgentoo-06e9cc8918c93fe11d9fa436ec33f4da9361eca9.tar.gz
gentoo-06e9cc8918c93fe11d9fa436ec33f4da9361eca9.tar.bz2
gentoo-06e9cc8918c93fe11d9fa436ec33f4da9361eca9.zip
dev-python/libnacl: Bump to 2.0.0
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/libnacl')
-rw-r--r--dev-python/libnacl/Manifest1
-rw-r--r--dev-python/libnacl/libnacl-2.0.0.ebuild38
2 files changed, 39 insertions, 0 deletions
diff --git a/dev-python/libnacl/Manifest b/dev-python/libnacl/Manifest
index 8ae7433f684a..d2d1fa7285f1 100644
--- a/dev-python/libnacl/Manifest
+++ b/dev-python/libnacl/Manifest
@@ -1,2 +1,3 @@
DIST libnacl-1.8.0.gh.tar.gz 43351 BLAKE2B 4ba0ebcb50755d80418ffe7238c65d9309954cb2a0eac61937c488144b56093f3fcd87f0bf22a290c7b415c70cb781fbf7a2c608863d43694230fe34b3ad418e SHA512 7a39d646083591782691c4d58fd4d743b385ee553bcc4c4741707a237fa3b1213629b5070390526175bdfe8436859aa7711779ff8b22a981227edb30b94e82d6
DIST libnacl-1.9.0.gh.tar.gz 43752 BLAKE2B 4a604958aeb9c4b26351b74fa3452b72b7e822c9ea28f4a070464568f1eed184615f0ad5624a2838bf055cf221a9a0f493419b16f2bf2be26c608b396d3f234c SHA512 1c1011f218864f4eab6a985a957f7ec5b8a227ed107ab336a0bc076be10bae6d598f3e81f3a20177e81f25f93c36b23118f515b98f87e11b1f727cae3db1e267
+DIST libnacl-2.0.0.gh.tar.gz 44710 BLAKE2B 50fa7d446370bb6043d942b28364b5bf2a23efcd6f3c82a59ee0ef0f7666a9ebe8e3dcf487d43e6ecb548ededb5e6228b3da401dc30924fef90047da40888168 SHA512 f8159ae479d920058662ffde2ac3bad2c8b413d55ca0bd442b81c7071b4cfca90eae277f85e7bf0bb63cd71ee1e0ad4cbbb03468ed55d1bcbe06d2e9a0976b72
diff --git a/dev-python/libnacl/libnacl-2.0.0.ebuild b/dev-python/libnacl/libnacl-2.0.0.ebuild
new file mode 100644
index 000000000000..62aad69145c6
--- /dev/null
+++ b/dev-python/libnacl/libnacl-2.0.0.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=poetry
+PYTHON_COMPAT=( python3_{10..12} )
+
+inherit distutils-r1
+
+DESCRIPTION="Python ctypes wrapper for libsodium"
+HOMEPAGE="
+ https://libnacl.readthedocs.io/
+ https://github.com/saltstack/libnacl/
+ https://pypi.org/project/libnacl/
+"
+SRC_URI="
+ https://github.com/saltstack/libnacl/archive/v${PV}.tar.gz
+ -> ${P}.gh.tar.gz
+"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86"
+
+RDEPEND="
+ dev-libs/libsodium
+"
+BDEPEND="
+ ${RDEPEND}
+"
+
+distutils_enable_tests unittest
+
+python_test() {
+ eunittest -p 'test_*.py' tests/ ||
+ die "Tests failed with ${EPYTHON}"
+}