commit: 94f2832c0de5ac3f5424be0b9763cebca94ed926
Author: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
AuthorDate: Tue Aug 5 06:31:32 2025 +0000
Commit: Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
CommitDate: Tue Aug 5 06:31:32 2025 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=94f2832c
dev-python/xattr: add 1.2.0
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in>
dev-python/xattr/Manifest | 1 +
dev-python/xattr/xattr-1.2.0.ebuild | 56 +++++++++++++++++++++++++++++++++++++
2 files changed, 57 insertions(+)
diff --git a/dev-python/xattr/Manifest b/dev-python/xattr/Manifest
index 2125486306..fb9905a3d0 100644
--- a/dev-python/xattr/Manifest
+++ b/dev-python/xattr/Manifest
@@ -1 +1,2 @@
DIST xattr-1.1.0.tar.gz 16634 BLAKE2B
e920afbdc7c154e4558debb08f3b3230295854c799dcc3a28eaddb6d5a9a011bcab460c3d9a3f944cc43705796fb1fb5c57bb3b15653a128b91be17decc7b86c
SHA512
b23eb96be5d6810ff2251418a2c2687d15cc98ceed422abe4a8bce01c77dda2969525f07feaf468bc43b60b6df6d573f15787b6221ed5816a772abd93ac47f8f
+DIST xattr-1.2.0.tar.gz 17293 BLAKE2B
5a13a9fa6d0ec1f4378d37b444d2168c615ce33299bde12f7d0715837c172c6809b552043836d80ac0d7a88502e98e3fb36ca462f63def59b2913d7537cd993f
SHA512
6c6cafccd05eba8abbfb1c62d5234ca04c52b608670ece395f62e70a3c8e7cfcc3f5e12a25ad888e92fb6aad2c717686c9f14448523cf4180c3effeb1556db72
diff --git a/dev-python/xattr/xattr-1.2.0.ebuild
b/dev-python/xattr/xattr-1.2.0.ebuild
new file mode 100644
index 0000000000..5ff5087035
--- /dev/null
+++ b/dev-python/xattr/xattr-1.2.0.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+DISTUTILS_EXT=1
+PYTHON_COMPAT=( python3_{11..13} )
+
+inherit distutils-r1 pypi
+
+DESCRIPTION="Python wrapper for extended filesystem attributes"
+HOMEPAGE="
+ https://pypi.org/project/xattr/
+ https://github.com/xattr/xattr
+"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RDEPEND="
+ $(python_gen_cond_dep '!dev-python/pyxattr[${PYTHON_USEDEP}]')
+"
+BDEPEND="
+ $(python_gen_cond_dep '
+ >=dev-python/cffi-1.16.0[${PYTHON_USEDEP}]
+ ' 'python*')
+ test? ( sys-apps/attr )
+"
+
+distutils_enable_tests pytest
+
+python_test() {
+ cd "${T}" || die
+ epytest "${S}"/tests
+}
+
+check_xattr() {
+ touch tt || die
+
+ setfattr -n "user.testAttr" -v "attribute value" tt || return 1
+ getfattr -n "user.testAttr" tt >/dev/null || return 1
+
+ rm -f tt
+ return 0
+}
+
+src_test() {
+ if ! check_xattr; then
+ ewarn "Extended attributes not supported on your filesystem,
skipping tests"
+ return 0
+ fi
+
+ distutils-r1_src_test
+}