1 |
commit: 008ec671d5c5eccab25e848a5b5950726f44e444 |
2 |
Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun May 29 18:34:23 2022 +0000 |
4 |
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun May 29 18:34:23 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=008ec671 |
7 |
|
8 |
dev-python/reedsolomon: Use PEP517 build |
9 |
|
10 |
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org> |
11 |
|
12 |
dev-python/reedsolomon/reedsolomon-1.5.4-r2.ebuild | 32 ++++++++++++++++++++++ |
13 |
1 file changed, 32 insertions(+) |
14 |
|
15 |
diff --git a/dev-python/reedsolomon/reedsolomon-1.5.4-r2.ebuild b/dev-python/reedsolomon/reedsolomon-1.5.4-r2.ebuild |
16 |
new file mode 100644 |
17 |
index 000000000000..7161053b5d12 |
18 |
--- /dev/null |
19 |
+++ b/dev-python/reedsolomon/reedsolomon-1.5.4-r2.ebuild |
20 |
@@ -0,0 +1,32 @@ |
21 |
+# Copyright 2021-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 |
+inherit distutils-r1 |
29 |
+ |
30 |
+DESCRIPTION="Pure-Python Reed Solomon encoder/decoder" |
31 |
+HOMEPAGE="https://github.com/tomerfiliba/reedsolomon https://pypi.org/project/reedsolo/" |
32 |
+SRC_URI="https://github.com/tomerfiliba/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
33 |
+ |
34 |
+LICENSE="public-domain" |
35 |
+SLOT="0" |
36 |
+KEYWORDS="~amd64 ~arm ~arm64 ~x86" |
37 |
+IUSE="test" |
38 |
+RESTRICT="!test? ( test )" |
39 |
+ |
40 |
+BDEPEND=" |
41 |
+ dev-python/cython[${PYTHON_USEDEP}] |
42 |
+" |
43 |
+ |
44 |
+src_prepare() { |
45 |
+ default |
46 |
+ rm creedsolo.c || die |
47 |
+} |
48 |
+ |
49 |
+python_test() { |
50 |
+ "${EPYTHON}" tests/test_creedsolo.py || die "creedsolo test failed with ${EPYTHON}" |
51 |
+ "${EPYTHON}" tests/test_reedsolo.py || die "reedsolo test failed with ${EPYTHON}" |
52 |
+} |