1 |
commit: e5d576dabdc6b04fb3a775706e0e30981b1d5bf7 |
2 |
Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Nov 7 08:05:54 2021 +0000 |
4 |
Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Nov 7 08:39:15 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e5d576da |
7 |
|
8 |
dev-python/parse_type: add 0.5.6 |
9 |
|
10 |
Use github given pypi is stuck at 0.5.2 |
11 |
|
12 |
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org> |
13 |
|
14 |
dev-python/parse_type/Manifest | 1 + |
15 |
dev-python/parse_type/parse_type-0.5.6.ebuild | 40 +++++++++++++++++++++++++++ |
16 |
2 files changed, 41 insertions(+) |
17 |
|
18 |
diff --git a/dev-python/parse_type/Manifest b/dev-python/parse_type/Manifest |
19 |
index da152502807..c9ce59976ed 100644 |
20 |
--- a/dev-python/parse_type/Manifest |
21 |
+++ b/dev-python/parse_type/Manifest |
22 |
@@ -1 +1,2 @@ |
23 |
DIST parse_type-0.5.2.tar.gz 272082 BLAKE2B b9d8000e0892e083235a309873b3418df6a9b90dd50f778f36285b65e07768cd52dffa338d908621dbaac75b8bade0febb086be347c92b193d81a6adda124c92 SHA512 c3f586bee000e09ce1c115bd24679ee59d60b51319ee37233e0cdc358db6b30af3700f95f3e2172b3e64b02ede23aea3d3bb0aeab366e9b9fa6249459daf7e06 |
24 |
+DIST parse_type-0.5.6.tar.gz 270970 BLAKE2B 1140a21977dbb3c81f622b45c0d2d3cfedb4a3e8ceeb1f55c185c61bafd17599ec8555e37661316583b9ce0f09d8672fc28ae10c9f1630fd7deecf207381f81a SHA512 6729af4383baceea48cf0bbd73e7e3f580cfbb867965814ba354ea5de6794583782c929557f6f1c7f8bd45703a69b2f890455cfd749690f851f1853562da0c40 |
25 |
|
26 |
diff --git a/dev-python/parse_type/parse_type-0.5.6.ebuild b/dev-python/parse_type/parse_type-0.5.6.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..dc269e3e675 |
29 |
--- /dev/null |
30 |
+++ b/dev-python/parse_type/parse_type-0.5.6.ebuild |
31 |
@@ -0,0 +1,40 @@ |
32 |
+# Copyright 2021 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=8 |
36 |
+ |
37 |
+PYTHON_COMPAT=( python3_{8..10} ) |
38 |
+inherit distutils-r1 |
39 |
+ |
40 |
+DESCRIPTION="Extension to the parse module" |
41 |
+HOMEPAGE="https://pypi.org/project/parse-type/" |
42 |
+SRC_URI="https://github.com/jenisys/parse_type/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" |
43 |
+ |
44 |
+LICENSE="BSD" |
45 |
+SLOT="0" |
46 |
+KEYWORDS="~amd64 ~arm64 ~x86" |
47 |
+ |
48 |
+RDEPEND=" |
49 |
+ dev-python/parse[${PYTHON_USEDEP}] |
50 |
+ dev-python/six[${PYTHON_USEDEP}]" |
51 |
+ |
52 |
+distutils_enable_tests pytest |
53 |
+ |
54 |
+PATCHES=( |
55 |
+ "${FILESDIR}"/${PN}-0.5.2-setupwarn.patch |
56 |
+) |
57 |
+ |
58 |
+DOCS=( CHANGES.txt README.rst ) |
59 |
+ |
60 |
+python_prepare_all() { |
61 |
+ distutils-r1_python_prepare_all |
62 |
+ |
63 |
+ # disable unnecessary html test report and its pytest-html dependency |
64 |
+ sed -i '/^addopts/,/report.xml$/d' pytest.ini || die |
65 |
+} |
66 |
+ |
67 |
+python_compile() { |
68 |
+ 2to3 -nw --no-diffs ${PN} tests || die |
69 |
+ |
70 |
+ distutils-r1_python_compile |
71 |
+} |