diff options
author | Patrick McLean <chutzpah@gentoo.org> | 2024-08-20 11:09:28 -0700 |
---|---|---|
committer | Patrick McLean <chutzpah@gentoo.org> | 2024-08-21 10:14:31 -0700 |
commit | e63f2c212e2ad7f3ab3028e422f10df37aeaeac0 (patch) | |
tree | 902dc519965175b2da282317b1b2f909295bfe10 | |
parent | net-libs/gnutls-3.8.7.1-r1: replace one gnulib hack for another (Solaris) (diff) | |
download | gentoo-e63f2c212e2ad7f3ab3028e422f10df37aeaeac0.tar.gz gentoo-e63f2c212e2ad7f3ab3028e422f10df37aeaeac0.tar.bz2 gentoo-e63f2c212e2ad7f3ab3028e422f10df37aeaeac0.zip |
dev-python/backports-ssl-match-hostname: new package, add 3.7.0.1
Signed-off-by: Patrick McLean <chutzpah@gentoo.org>
3 files changed, 38 insertions, 0 deletions
diff --git a/dev-python/backports-ssl-match-hostname/Manifest b/dev-python/backports-ssl-match-hostname/Manifest new file mode 100644 index 000000000000..23990ee86a4a --- /dev/null +++ b/dev-python/backports-ssl-match-hostname/Manifest @@ -0,0 +1 @@ +DIST backports.ssl_match_hostname-3.7.0.1.tar.gz 5722 BLAKE2B fcacafd3963070adb3593003244cb5b64ba5dcf3f623afccb689ffa6546b59ac858b60a7c240b3074927974460746e3396e4c61ce61e1aad0c6bbf0b80dc2f61 SHA512 9048ed093dc8a166a80d16a9aa0e06d36ea43ce7d324818608d25b1ef5057b1c66dd3514f9b35ab13bc60b2e5a3de29e690607e928fac2c9df16506759bd14dd diff --git a/dev-python/backports-ssl-match-hostname/backports-ssl-match-hostname-3.7.0.1.ebuild b/dev-python/backports-ssl-match-hostname/backports-ssl-match-hostname-3.7.0.1.ebuild new file mode 100644 index 000000000000..216dc83cbc23 --- /dev/null +++ b/dev-python/backports-ssl-match-hostname/backports-ssl-match-hostname-3.7.0.1.ebuild @@ -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 +} diff --git a/dev-python/backports-ssl-match-hostname/metadata.xml b/dev-python/backports-ssl-match-hostname/metadata.xml new file mode 100644 index 000000000000..9e6f1b35e1aa --- /dev/null +++ b/dev-python/backports-ssl-match-hostname/metadata.xml @@ -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> |