Gentoo Archives: gentoo-commits

From: Arthur Zamarin <arthurzam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/mimerender/
Date: Sun, 29 May 2022 19:16:08
Message-Id: 1653851750.77a972dfb3f767a193cb590d612a6ca5ebefd7c9.arthurzam@gentoo
1 commit: 77a972dfb3f767a193cb590d612a6ca5ebefd7c9
2 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
3 AuthorDate: Sun May 29 19:08:55 2022 +0000
4 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
5 CommitDate: Sun May 29 19:15:50 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=77a972df
7
8 dev-python/mimerender: EAPI=8, Use PEP517
9
10 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
11
12 dev-python/mimerender/mimerender-0.6.0-r1.ebuild | 29 ++++++++++++++++++++++++
13 1 file changed, 29 insertions(+)
14
15 diff --git a/dev-python/mimerender/mimerender-0.6.0-r1.ebuild b/dev-python/mimerender/mimerender-0.6.0-r1.ebuild
16 new file mode 100644
17 index 000000000000..e5ec7f9a9d78
18 --- /dev/null
19 +++ b/dev-python/mimerender/mimerender-0.6.0-r1.ebuild
20 @@ -0,0 +1,29 @@
21 +# Copyright 1999-2022 Gentoo Authors
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=8
25 +
26 +DISTUTILS_USE_PEP517=setuptools
27 +PYTHON_COMPAT=( python3_{8..10} )
28 +
29 +inherit distutils-r1
30 +
31 +DESCRIPTION="RESTful HTTP Content Negotiation for Flask, Bottle, web.py and webapp2"
32 +HOMEPAGE="
33 + https://pypi.org/project/mimerender/
34 + https://github.com/martinblech/mimerender/"
35 +SRC_URI="
36 + https://github.com/martinblech/mimerender/archive/v${PV}.tar.gz
37 + -> ${P}.gh.tar.gz"
38 +
39 +LICENSE="BSD"
40 +SLOT="0"
41 +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
42 +
43 +RDEPEND="dev-python/python-mimeparse[${PYTHON_USEDEP}]"
44 +
45 +distutils_enable_tests unittest
46 +
47 +python_test() {
48 + "${EPYTHON}" src/test.py -v || die "Tests fail with ${EPYTHON}"
49 +}