dev-python/publicsuffix: PEP517, unhardcode version

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2022-04-18 09:56:37 +02:00
parent 7682e30474
commit c6a1c33c6b
2 changed files with 34 additions and 0 deletions

View File

@@ -1 +1,2 @@
DIST publicsuffix-2.20191221.gh.tar.gz 98142 BLAKE2B 21b0dabb253175ecf427a51bcc7df2de7fa3fc9fe7d9032cc378160c4c53e75efa4c0e657efc93d48bb58f786160d89cb2fd7301e3c270f73802a926c31ea378 SHA512 983bdb17b76d10eb73cf69f0ba7590806bf6786ae0c30526593ce1ab97f3b22c967f9acae83b880dd56be41a29eae9cca5726926667eb74013d0d1078433bf05
DIST python-publicsuffix2-release-2.2019-12-21.gh.tar.gz 98142 BLAKE2B 21b0dabb253175ecf427a51bcc7df2de7fa3fc9fe7d9032cc378160c4c53e75efa4c0e657efc93d48bb58f786160d89cb2fd7301e3c270f73802a926c31ea378 SHA512 983bdb17b76d10eb73cf69f0ba7590806bf6786ae0c30526593ce1ab97f3b22c967f9acae83b880dd56be41a29eae9cca5726926667eb74013d0d1078433bf05

View File

@@ -0,0 +1,33 @@
# Copyright 2020-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{8..10} )
inherit distutils-r1
PV_DATE=$(ver_cut 2)
MY_PV=release-$(ver_cut 1).${PV_DATE::4}-${PV_DATE:4:2}-${PV_DATE:6:2}
MY_P=python-publicsuffix2-${MY_PV}
DESCRIPTION="Get a public suffix for a domain name using the Public Suffix List"
HOMEPAGE="
https://github.com/nexB/python-publicsuffix2/
"
SRC_URI="
https://github.com/nexB/python-publicsuffix2/archive/${MY_PV}.tar.gz
-> ${MY_P}.gh.tar.gz
"
S=${WORKDIR}/${MY_P}
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm64 ~x86"
RDEPEND="
>=dev-python/requests-2.7.0[${PYTHON_USEDEP}]
"
distutils_enable_tests pytest