summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2022-04-18 09:56:37 +0200
committerMichał Górny <mgorny@gentoo.org>2022-04-18 10:19:07 +0200
commitc6a1c33c6bcd2431565cd982413dcc0f2bf2246f (patch)
tree011f46bd9a526058d3710a3667b3ba10cc9832de /dev-python/publicsuffix
parentdev-python/authres: EAPI 8, PEP517 (diff)
downloadgentoo-c6a1c33c6bcd2431565cd982413dcc0f2bf2246f.tar.gz
gentoo-c6a1c33c6bcd2431565cd982413dcc0f2bf2246f.tar.bz2
gentoo-c6a1c33c6bcd2431565cd982413dcc0f2bf2246f.zip
dev-python/publicsuffix: PEP517, unhardcode version
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/publicsuffix')
-rw-r--r--dev-python/publicsuffix/Manifest1
-rw-r--r--dev-python/publicsuffix/publicsuffix-2.20191221-r2.ebuild33
2 files changed, 34 insertions, 0 deletions
diff --git a/dev-python/publicsuffix/Manifest b/dev-python/publicsuffix/Manifest
index 28575fb6fe7b..04970e107ee2 100644
--- a/dev-python/publicsuffix/Manifest
+++ b/dev-python/publicsuffix/Manifest
@@ -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
diff --git a/dev-python/publicsuffix/publicsuffix-2.20191221-r2.ebuild b/dev-python/publicsuffix/publicsuffix-2.20191221-r2.ebuild
new file mode 100644
index 000000000000..f33a01dd2239
--- /dev/null
+++ b/dev-python/publicsuffix/publicsuffix-2.20191221-r2.ebuild
@@ -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