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/tinycss2/
Date: Thu, 27 Jan 2022 10:02:31
Message-Id: 1643277739.765694e59a3a4e4ad04a33173fc93f7f3bbeb654.mgorny@gentoo
1 commit: 765694e59a3a4e4ad04a33173fc93f7f3bbeb654
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jan 27 09:47:38 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Thu Jan 27 10:02:19 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=765694e5
7
8 dev-python/tinycss2: Switch to PEP 517 build
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/tinycss2/tinycss2-1.1.1-r1.ebuild | 39 ++++++++++++++++++++++++++++
13 1 file changed, 39 insertions(+)
14
15 diff --git a/dev-python/tinycss2/tinycss2-1.1.1-r1.ebuild b/dev-python/tinycss2/tinycss2-1.1.1-r1.ebuild
16 new file mode 100644
17 index 000000000000..a135cbdc7c1b
18 --- /dev/null
19 +++ b/dev-python/tinycss2/tinycss2-1.1.1-r1.ebuild
20 @@ -0,0 +1,39 @@
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=flit
27 +PYTHON_COMPAT=( python3_{8..10} )
28 +
29 +inherit distutils-r1
30 +
31 +CSS_TEST_COMMIT_ID=c5749e51dda3868b3e8062e65a36584c2fec8059
32 +
33 +DESCRIPTION="A complete yet simple CSS parser for Python"
34 +HOMEPAGE="https://github.com/Kozea/tinycss2/
35 + https://pypi.org/project/tinycss2/"
36 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
37 +SRC_URI="
38 + https://github.com/Kozea/tinycss2/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz
39 + test? (
40 + https://github.com/SimonSapin/css-parsing-tests/archive/${CSS_TEST_COMMIT_ID}.tar.gz
41 + -> css-parsing-tests-${CSS_TEST_COMMIT_ID}.gh.tar.gz
42 + )"
43 +
44 +LICENSE="BSD"
45 +SLOT="0"
46 +KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86"
47 +
48 +RDEPEND=">=dev-python/webencodings-0.4[${PYTHON_USEDEP}]"
49 +
50 +distutils_enable_tests pytest
51 +
52 +src_prepare() {
53 + sed -i -e '/addopts/d' pyproject.toml || die
54 + if use test; then
55 + mv "${WORKDIR}/css-parsing-tests-${CSS_TEST_COMMIT_ID}"/* \
56 + tests/css-parsing-tests/ || die
57 + fi
58 + distutils-r1_src_prepare
59 +}