summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2023-11-05 16:24:38 +0100
committerMichał Górny <mgorny@gentoo.org>2023-11-05 17:27:35 +0100
commit79318d140e53a2cb81313feb9f42a7537ad370a8 (patch)
treeb7537e8dd0eca91cf01a18667ce02b0bde7580c3 /dev-python/spake2
parentdev-python/PyQt6: depend on qtdeclarative[opengl] for USE=quick (diff)
downloadgentoo-79318d140e53a2cb81313feb9f42a7537ad370a8.tar.gz
gentoo-79318d140e53a2cb81313feb9f42a7537ad370a8.tar.bz2
gentoo-79318d140e53a2cb81313feb9f42a7537ad370a8.zip
dev-python/spake2: Enable py3.12
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/spake2')
-rw-r--r--dev-python/spake2/Manifest2
-rw-r--r--dev-python/spake2/spake2-0.8-r1.ebuild27
2 files changed, 23 insertions, 6 deletions
diff --git a/dev-python/spake2/Manifest b/dev-python/spake2/Manifest
index 9f81f89fe54b..d4e8add8de7e 100644
--- a/dev-python/spake2/Manifest
+++ b/dev-python/spake2/Manifest
@@ -1 +1 @@
-DIST spake2-0.8.gh.tar.gz 62425 BLAKE2B 64215362af26fff0785fdabf4282f7111a4cc917750827075b616f009cb1fa6373fc2325382c26b43c051aa5b94e414ca2a5223d9ab666289eb2d04723b15cb5 SHA512 908c377c831f4a11551973ca917b113d51a66c533d35fd19b2692fdb7e575ed2a5045d9b632bc55c37b68ad092f01dff5da191e9dfbfb5599b72844788438d68
+DIST python-spake2-0.8.gh.tar.gz 62425 BLAKE2B 64215362af26fff0785fdabf4282f7111a4cc917750827075b616f009cb1fa6373fc2325382c26b43c051aa5b94e414ca2a5223d9ab666289eb2d04723b15cb5 SHA512 908c377c831f4a11551973ca917b113d51a66c533d35fd19b2692fdb7e575ed2a5045d9b632bc55c37b68ad092f01dff5da191e9dfbfb5599b72844788438d68
diff --git a/dev-python/spake2/spake2-0.8-r1.ebuild b/dev-python/spake2/spake2-0.8-r1.ebuild
index ddda85a403a6..37c866d89884 100644
--- a/dev-python/spake2/spake2-0.8-r1.ebuild
+++ b/dev-python/spake2/spake2-0.8-r1.ebuild
@@ -3,26 +3,43 @@
EAPI=8
-PYTHON_COMPAT=( python3_{10..11} )
DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{10..12} )
inherit distutils-r1
+MY_P=python-spake2-${PV}
DESCRIPTION="python implementation of SPAKE2 password-authenticated key exchange algorithm"
-HOMEPAGE="https://pypi.org/project/spake2/"
-SRC_URI="https://github.com/warner/python-${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz"
+HOMEPAGE="
+ https://github.com/warner/python-spake2/
+ https://pypi.org/project/spake2/
+"
+SRC_URI="
+ https://github.com/warner/python-spake2/archive/v${PV}.tar.gz
+ -> ${MY_P}.gh.tar.gz
+"
+S=${WORKDIR}/${MY_P}
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
-S="${WORKDIR}/python-${P}"
RDEPEND="
dev-python/cryptography[${PYTHON_USEDEP}]
- dev-python/more-itertools[${PYTHON_USEDEP}]"
+ dev-python/more-itertools[${PYTHON_USEDEP}]
+"
+BDEPEND="
+ dev-python/versioneer[${PYTHON_USEDEP}]
+"
PATCHES=(
"${FILESDIR}"/${P}-do_not_use_hkdf_package.patch
)
distutils_enable_tests pytest
+
+src_prepare() {
+ # remove outdated bundled versioneer
+ rm versioneer.py || die
+ distutils-r1_src_prepare
+}