diff options
Diffstat (limited to 'dev-python/tinycss2')
-rw-r--r-- | dev-python/tinycss2/Manifest | 1 | ||||
-rw-r--r-- | dev-python/tinycss2/tinycss2-1.1.1-r1.ebuild | 39 |
2 files changed, 40 insertions, 0 deletions
diff --git a/dev-python/tinycss2/Manifest b/dev-python/tinycss2/Manifest index f4a302cd789c..a032e0808095 100644 --- a/dev-python/tinycss2/Manifest +++ b/dev-python/tinycss2/Manifest @@ -1,4 +1,5 @@ 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 +EBUILD tinycss2-1.1.1-r1.ebuild 1057 BLAKE2B 5f6fdb89eb1f6e430a13afb684f7c3a9efc7a0da661b461c04842389e69c63e0a0be4ecc443833c3133d234c119a85c6dafc4641a27e3cf3e23018ee6f4b0acb SHA512 1b088089bc10a4c1c19a909ddc33e0062204aeb84fcb81865a973906acaf8945c6b75f946c4f7163bee6ae510ea648a2bd7fdcae6ac630f3353d6f06cd076c86 EBUILD tinycss2-1.1.1.ebuild 1069 BLAKE2B f6daa78664bce01ec6e716cf010fb624d98a38d1c3d5ec923d72157e17ff69a117e395c540b2392886e58597c2eb649377594a0ae43d9571e5c9ccfd027c25f6 SHA512 225c419d0ecab2ec293ea67a56b2593226b0a69d515fc2104d455ff8801cb6d75f089468374ae200810e0b22539450228ab590926205e483d71089b049b166d3 MISC metadata.xml 523 BLAKE2B 1590e6af6e994f20bd2087eb2ad0d9a05736f983a123cf5a7373d0f8e2608dbdd8886fe90fd62d978e0abcdcb9deef30a9cf9622302fc2d3d20a137ce1d4b563 SHA512 04c0ea9aa7b4d9317a262bda5486c1495a7978b44e6c87c1c67a44f7846807c2ba5dae6a55f32c21237adb8d25426746da0b0c63dba6668ea2e0f35223859a6c diff --git a/dev-python/tinycss2/tinycss2-1.1.1-r1.ebuild b/dev-python/tinycss2/tinycss2-1.1.1-r1.ebuild new file mode 100644 index 000000000000..a135cbdc7c1b --- /dev/null +++ b/dev-python/tinycss2/tinycss2-1.1.1-r1.ebuild @@ -0,0 +1,39 @@ +# 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..10} ) + +inherit distutils-r1 + +CSS_TEST_COMMIT_ID=c5749e51dda3868b3e8062e65a36584c2fec8059 + +DESCRIPTION="A complete yet simple CSS parser for Python" +HOMEPAGE="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/SimonSapin/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 ~riscv ~x86" + +RDEPEND=">=dev-python/webencodings-0.4[${PYTHON_USEDEP}]" + +distutils_enable_tests pytest + +src_prepare() { + sed -i -e '/addopts/d' pyproject.toml || die + if use test; then + mv "${WORKDIR}/css-parsing-tests-${CSS_TEST_COMMIT_ID}"/* \ + tests/css-parsing-tests/ || die + fi + distutils-r1_src_prepare +} |