diff options
author | Michał Górny <mgorny@gentoo.org> | 2022-10-18 07:25:38 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2022-10-18 08:36:26 +0200 |
commit | cb2c009b26874cc9326260c3536656d6b67fe597 (patch) | |
tree | ac6c1f7c3fab6d86b449ad527092c958faa3cd38 /dev-python/tinycss2 | |
parent | dev-python/pastedeploy: Bump to 3.0.1 (diff) | |
download | gentoo-cb2c009b26874cc9326260c3536656d6b67fe597.tar.gz gentoo-cb2c009b26874cc9326260c3536656d6b67fe597.tar.bz2 gentoo-cb2c009b26874cc9326260c3536656d6b67fe597.zip |
dev-python/tinycss2: Bump to 1.2.0
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/tinycss2')
-rw-r--r-- | dev-python/tinycss2/Manifest | 1 | ||||
-rw-r--r-- | dev-python/tinycss2/tinycss2-1.2.0.ebuild | 44 |
2 files changed, 45 insertions, 0 deletions
diff --git a/dev-python/tinycss2/Manifest b/dev-python/tinycss2/Manifest index 89c74b1fb5a4..08ec758da988 100644 --- a/dev-python/tinycss2/Manifest +++ b/dev-python/tinycss2/Manifest @@ -1,2 +1,3 @@ DIST css-parsing-tests-c5749e51dda3868b3e8062e65a36584c2fec8059.gh.tar.gz 35758 BLAKE2B d834011c3ac774eb79b35e2e74f3854ddc2bb871531a32194041d6f98bde3dc68db67baea25d5463a03e057197144237be69fee4eacfb8edb73167e6e4faf7be SHA512 ef44eb1144a6484f308fabe4187310b2ef0067f328bf5213969d87c475fccae3d716dc66640a0a554ab2a3d7da0efb3a168a288ac6eef7722f3ae46959943b49 DIST tinycss2-1.1.1.gh.tar.gz 28261 BLAKE2B f86b25be62c4c107dd6dca0b9e49605bc0c04b6ec48c4283fa7a5a33249032dcc3a42bdb9910d6235da4c4ddbf581ef8ebdc404c3bb32eeca7f355c0081e6fb7 SHA512 788b57fbadd299a4d4745bcc1814a2ebf6db76e337f2de2637ffc1610a3dac5a70f01bb9ffbb2afbdb0c638a6b23cc1b2f199eebfbb77d84906a9da5dfecada6 +DIST tinycss2-1.2.0.gh.tar.gz 28335 BLAKE2B 8321819bd0bc6de77f61a4a56efea56fa0fd9d95b944aa27d2ddecd088a062b0457af160e313ed9811755d8a7f0dfcd763e1e9b69d69de137de526df7b60d457 SHA512 f7add43bae94721a5e9b3526e7c5c7cf344c771b06584c5c370a35c4ad1ed1875596b34e353da02bbf18a58178a44c049b85a8d579879f6ceea62dadacd789c0 diff --git a/dev-python/tinycss2/tinycss2-1.2.0.ebuild b/dev-python/tinycss2/tinycss2-1.2.0.ebuild new file mode 100644 index 000000000000..8263763b5bad --- /dev/null +++ b/dev-python/tinycss2/tinycss2-1.2.0.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=flit +PYTHON_COMPAT=( python3_{8..11} ) + +inherit distutils-r1 + +CSS_TEST_COMMIT_ID=c5749e51dda3868b3e8062e65a36584c2fec8059 + +DESCRIPTION="A complete yet simple CSS parser for Python" +HOMEPAGE=" + https://www.courtbouillon.org/tinycss2 + https://github.com/Kozea/tinycss2/ + https://pypi.org/project/tinycss2/ +" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" +SRC_URI=" + https://github.com/Kozea/tinycss2/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz + test? ( + https://github.com/CourtBouillon/css-parsing-tests/archive/${CSS_TEST_COMMIT_ID}.tar.gz + -> css-parsing-tests-${CSS_TEST_COMMIT_ID}.gh.tar.gz + ) +" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + +RDEPEND=" + >=dev-python/webencodings-0.4[${PYTHON_USEDEP}] +" + +distutils_enable_tests pytest + +src_prepare() { + if use test; then + mv "${WORKDIR}/css-parsing-tests-${CSS_TEST_COMMIT_ID}"/* \ + tests/css-parsing-tests/ || die + fi + distutils-r1_src_prepare +} |