Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/jellyfish/
Date: Sat, 26 Feb 2022 07:49:22
Message-Id: 1645861744.7d8e2b7445d1daaca8fd21f94e933643ccd07534.mgorny@gentoo
1 commit: 7d8e2b7445d1daaca8fd21f94e933643ccd07534
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sat Feb 26 07:46:37 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat Feb 26 07:49:04 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7d8e2b74
7
8 dev-python/jellyfish: Switch to PEP517 build
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/jellyfish/jellyfish-0.9.0-r1.ebuild | 34 ++++++++++++++++++++++++++
13 1 file changed, 34 insertions(+)
14
15 diff --git a/dev-python/jellyfish/jellyfish-0.9.0-r1.ebuild b/dev-python/jellyfish/jellyfish-0.9.0-r1.ebuild
16 new file mode 100644
17 index 000000000000..144312e581c6
18 --- /dev/null
19 +++ b/dev-python/jellyfish/jellyfish-0.9.0-r1.ebuild
20 @@ -0,0 +1,34 @@
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="Python module for doing approximate and phonetic matching of strings"
32 +HOMEPAGE="https://github.com/jamesturk/jellyfish https://pypi.org/project/jellyfish/"
33 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
34 +
35 +LICENSE="BSD-2"
36 +SLOT="0"
37 +KEYWORDS="~amd64 ~x86"
38 +
39 +BDEPEND="
40 + test? (
41 + dev-python/unicodecsv[${PYTHON_USEDEP}]
42 + )
43 +"
44 +
45 +distutils_enable_tests pytest
46 +
47 +src_test() {
48 + rm -r jellyfish || die
49 + distutils-r1_src_test
50 +}
51 +
52 +python_test() {
53 + epytest --pyargs jellyfish.test
54 +}