dev-python/backports-ssl-match-hostname: new package, add 3.7.0.1

Signed-off-by: Patrick McLean <chutzpah@gentoo.org>
This commit is contained in:
Patrick McLean
2024-08-20 11:09:28 -07:00
parent 54f9c1fafd
commit e63f2c212e
3 changed files with 38 additions and 0 deletions

View File

@@ -0,0 +1 @@
DIST backports.ssl_match_hostname-3.7.0.1.tar.gz 5722 BLAKE2B fcacafd3963070adb3593003244cb5b64ba5dcf3f623afccb689ffa6546b59ac858b60a7c240b3074927974460746e3396e4c61ce61e1aad0c6bbf0b80dc2f61 SHA512 9048ed093dc8a166a80d16a9aa0e06d36ea43ce7d324818608d25b1ef5057b1c66dd3514f9b35ab13bc60b2e5a3de29e690607e928fac2c9df16506759bd14dd

View File

@@ -0,0 +1,26 @@
# Copyright 2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( pypy3 python3_{10..13} )
inherit pypi distutils-r1
MY_PN=${PN/-/.}
MY_PN=${MY_PN//-/_}
DESCRIPTION="The ssl.match_hostname() function from Python 3.7"
HOMEPAGE="
https://pypi.org/project/backports.ssl_match_hostname/
"
SRC_URI="$(pypi_sdist_url --no-normalize "${MY_PN}" "${PV}")"
S="${WORKDIR}/${MY_PN}-${PV}"
LICENSE="PSF-2"
SLOT="0"
KEYWORDS="~amd64 ~riscv ~x86"
python_prepare_all() {
sed -e 's:from distutils.core:from setuptools:' -i setup.py || die
distutils-r1_python_prepare_all
}

View File

@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>chutzpah@gentoo.org</email>
<name>Patrick McLean</name>
</maintainer>
<upstream>
<remote-id type="pypi">backports-ssl-match-hostname</remote-id>
</upstream>
</pkgmetadata>