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/pyquery/
Date: Tue, 17 May 2022 07:21:16
Message-Id: 1652772066.7b37b792f53c6398b094ee7bb3f10d715846c7c5.mgorny@gentoo
1 commit: 7b37b792f53c6398b094ee7bb3f10d715846c7c5
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Tue May 17 07:15:51 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Tue May 17 07:21:06 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7b37b792
7
8 dev-python/pyquery: Use PEP517 build
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/pyquery/pyquery-1.4.3-r1.ebuild | 44 ++++++++++++++++++++++++++++++
13 1 file changed, 44 insertions(+)
14
15 diff --git a/dev-python/pyquery/pyquery-1.4.3-r1.ebuild b/dev-python/pyquery/pyquery-1.4.3-r1.ebuild
16 new file mode 100644
17 index 000000000000..7d17fca73067
18 --- /dev/null
19 +++ b/dev-python/pyquery/pyquery-1.4.3-r1.ebuild
20 @@ -0,0 +1,44 @@
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} pypy3 )
28 +
29 +inherit distutils-r1 optfeature
30 +
31 +DESCRIPTION="A jQuery-like library for python"
32 +HOMEPAGE="
33 + https://github.com/gawel/pyquery/
34 + https://pypi.org/project/pyquery/
35 +"
36 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
37 +
38 +LICENSE="BSD"
39 +SLOT="0"
40 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos"
41 +
42 +RDEPEND="
43 + >=dev-python/lxml-2.1[${PYTHON_USEDEP}]
44 + >dev-python/cssselect-0.7.9[${PYTHON_USEDEP}]
45 + >=dev-python/webob-1.1.9[${PYTHON_USEDEP}]
46 +"
47 +DEPEND="
48 + test? (
49 + dev-python/beautifulsoup4[${PYTHON_USEDEP}]
50 + dev-python/requests[${PYTHON_USEDEP}]
51 + dev-python/webtest[${PYTHON_USEDEP}]
52 + )
53 +"
54 +
55 +PATCHES=(
56 + "${FILESDIR}/pyquery-1.4.1-network-tests.patch"
57 + "${FILESDIR}/pyquery-1.4.1-tests-pypy.patch"
58 +)
59 +
60 +distutils_enable_tests unittest
61 +
62 +pkg_postinst() {
63 + optfeature "Support for BeautifulSoup3 as a parser backend" dev-python/beautifulsoup4
64 +}