1 |
commit: 113484c22b40b8a8eb3252d59849d3ef61ffa512 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun May 31 13:07:12 2020 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun May 31 13:19:50 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=113484c2 |
7 |
|
8 |
dev-python/mimeparse: Remove .egg hack |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/mimeparse/mimeparse-1.6.0-r1.ebuild | 24 ++++++++++++++++++++++++ |
13 |
1 file changed, 24 insertions(+) |
14 |
|
15 |
diff --git a/dev-python/mimeparse/mimeparse-1.6.0-r1.ebuild b/dev-python/mimeparse/mimeparse-1.6.0-r1.ebuild |
16 |
new file mode 100644 |
17 |
index 00000000000..e0b430e5f9e |
18 |
--- /dev/null |
19 |
+++ b/dev-python/mimeparse/mimeparse-1.6.0-r1.ebuild |
20 |
@@ -0,0 +1,24 @@ |
21 |
+# Copyright 1999-2020 Gentoo Authors |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+ |
24 |
+EAPI=7 |
25 |
+ |
26 |
+PYTHON_COMPAT=( python2_7 python3_{6..9} pypy3 ) |
27 |
+ |
28 |
+inherit distutils-r1 |
29 |
+ |
30 |
+MY_PN="python-${PN}" |
31 |
+MY_P="${MY_PN}-${PV}" |
32 |
+DESCRIPTION="Basic functions for handling mime-types in python" |
33 |
+HOMEPAGE="https://github.com/dbtsai/python-mimeparse" |
34 |
+SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz" |
35 |
+S="${WORKDIR}/${MY_P}" |
36 |
+ |
37 |
+LICENSE="MIT" |
38 |
+SLOT="0" |
39 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux" |
40 |
+IUSE="" |
41 |
+ |
42 |
+python_test() { |
43 |
+ "${EPYTHON}" mimeparse_test.py -v || die "Tests fail with ${EPYTHON}" |
44 |
+} |