1 |
commit: 7d608312ceb689cfa1f93a872fa785a0333e9948 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Feb 1 19:19:31 2023 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Feb 1 19:25:28 2023 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7d608312 |
7 |
|
8 |
dev-python/binaryornot: EAPI 8, PEP517 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/binaryornot/binaryornot-0.4.4-r3.ebuild | 39 ++++++++++++++++++++++ |
13 |
1 file changed, 39 insertions(+) |
14 |
|
15 |
diff --git a/dev-python/binaryornot/binaryornot-0.4.4-r3.ebuild b/dev-python/binaryornot/binaryornot-0.4.4-r3.ebuild |
16 |
new file mode 100644 |
17 |
index 000000000000..77d3e22aa76c |
18 |
--- /dev/null |
19 |
+++ b/dev-python/binaryornot/binaryornot-0.4.4-r3.ebuild |
20 |
@@ -0,0 +1,39 @@ |
21 |
+# Copyright 1999-2023 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_{9..11} ) |
28 |
+ |
29 |
+inherit distutils-r1 |
30 |
+ |
31 |
+DESCRIPTION="Ultra-lightweight pure Python package to guess whether a file is binary or text" |
32 |
+HOMEPAGE=" |
33 |
+ https://github.com/audreyfeldroy/binaryornot/ |
34 |
+ https://pypi.org/project/binaryornot/ |
35 |
+" |
36 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz -> ${P}.r1.tar.gz" |
37 |
+ |
38 |
+LICENSE="BSD" |
39 |
+SLOT="0" |
40 |
+KEYWORDS="~amd64 ~ppc64 ~riscv ~x86" |
41 |
+ |
42 |
+RDEPEND=" |
43 |
+ >=dev-python/chardet-3.0.2[${PYTHON_USEDEP}] |
44 |
+" |
45 |
+BDEPEND=" |
46 |
+ test? ( |
47 |
+ dev-python/hypothesis[${PYTHON_USEDEP}] |
48 |
+ ) |
49 |
+" |
50 |
+ |
51 |
+DOCS=( README.rst HISTORY.rst CONTRIBUTING.rst ) |
52 |
+ |
53 |
+PATCHES=( |
54 |
+ # https://github.com/audreyr/binaryornot/commit/38dee57986c6679d9936a1da6f6c8182da3734f8 |
55 |
+ "${FILESDIR}"/${P}-tests.patch |
56 |
+) |
57 |
+ |
58 |
+distutils_enable_tests unittest |
59 |
+distutils_enable_sphinx docs |