commit:     0887bfda8a45ebc9a36c932088fb34bf9b2496b1
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Nov 22 22:26:40 2021 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Nov 22 23:04:20 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0887bfda

dev-python/tinycss2: Bump to 1.1.1

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/tinycss2/Manifest              |  1 +
 dev-python/tinycss2/tinycss2-1.1.1.ebuild | 39 +++++++++++++++++++++++++++++++
 2 files changed, 40 insertions(+)

diff --git a/dev-python/tinycss2/Manifest b/dev-python/tinycss2/Manifest
index ccd31e79f3e7..b16817c0ddc8 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.0.gh.tar.gz 28205 BLAKE2B 
46ba3f705522067e5b7aa5fdbc89f8980598e7e81b39114052b428e8c21b1a90fb3a9082bd51bbc0c6719adf6f0be285683b125886afe1a957013164f3b89428
 SHA512 
e1ed2679c09a0814d6deca069c68521e6ceef80f4a9cc16ab359dc5ee7ef97d0c7335680702548b023b1a48c5aeb838e29bf1b55f64698913dd16ae33a478a2b
+DIST tinycss2-1.1.1.gh.tar.gz 28261 BLAKE2B 
f86b25be62c4c107dd6dca0b9e49605bc0c04b6ec48c4283fa7a5a33249032dcc3a42bdb9910d6235da4c4ddbf581ef8ebdc404c3bb32eeca7f355c0081e6fb7
 SHA512 
788b57fbadd299a4d4745bcc1814a2ebf6db76e337f2de2637ffc1610a3dac5a70f01bb9ffbb2afbdb0c638a6b23cc1b2f199eebfbb77d84906a9da5dfecada6

diff --git a/dev-python/tinycss2/tinycss2-1.1.1.ebuild 
b/dev-python/tinycss2/tinycss2-1.1.1.ebuild
new file mode 100644
index 000000000000..66380276e85e
--- /dev/null
+++ b/dev-python/tinycss2/tinycss2-1.1.1.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_SETUPTOOLS=pyproject.toml
+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 ~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
+}

Reply via email to