commit:     c4d7616baaad5e4fc56f2f03d54ffc1ddc8194ec
Author:     Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
AuthorDate: Tue Feb  6 15:12:52 2024 +0000
Commit:     Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
CommitDate: Tue Feb  6 15:13:30 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=c4d7616b

dev-python/xattr: add 1.1.0

Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in>

 dev-python/xattr/Manifest           |  1 +
 dev-python/xattr/xattr-1.1.0.ebuild | 53 +++++++++++++++++++++++++++++++++++++
 2 files changed, 54 insertions(+)

diff --git a/dev-python/xattr/Manifest b/dev-python/xattr/Manifest
index e553ef560e..d5ad4948b6 100644
--- a/dev-python/xattr/Manifest
+++ b/dev-python/xattr/Manifest
@@ -1,2 +1,3 @@
 DIST xattr-0.10.1.tar.gz 15868 BLAKE2B 
424f8c3dfc4312b87fafd5cfecebff1fbf41aa847a09424ee7c65ae2e70acd23b40d3d5829bede31c715780143c2debcf04ce01a4f3a89718473e6f56c06a336
 SHA512 
41aa839a56958efc211e28331c53b70dec2792e6e29c22dac84a832a17d0ec748ae4ca69a23b7a7152b4bed3c1c0edaf3f05a75f909908ea1f5e35cc0d84d56b
 DIST xattr-1.0.0.tar.gz 15880 BLAKE2B 
4a02743379f9c80658690ee2fa2f204de17cb1f8667c23c43876f8dd88dee974b73d076dc25d46b374d32606190f26cd003b13ffb7ba5f9262e57e71d4228e9d
 SHA512 
0939e341d960f63e181328ed39dd4ab1e8f34d87d25165d646463e793c7a135260f07b106067bbee803838a5eb003a213961137b45f0a340e81dbf659352dbce
+DIST xattr-1.1.0.tar.gz 16634 BLAKE2B 
e920afbdc7c154e4558debb08f3b3230295854c799dcc3a28eaddb6d5a9a011bcab460c3d9a3f944cc43705796fb1fb5c57bb3b15653a128b91be17decc7b86c
 SHA512 
b23eb96be5d6810ff2251418a2c2687d15cc98ceed422abe4a8bce01c77dda2969525f07feaf468bc43b60b6df6d573f15787b6221ed5816a772abd93ac47f8f

diff --git a/dev-python/xattr/xattr-1.1.0.ebuild 
b/dev-python/xattr/xattr-1.1.0.ebuild
new file mode 100644
index 0000000000..cd33536e29
--- /dev/null
+++ b/dev-python/xattr/xattr-1.1.0.ebuild
@@ -0,0 +1,53 @@
+# 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_{10..12} pypy3 )
+
+inherit distutils-r1 pypi
+
+DESCRIPTION="Python wrapper for extended filesystem attributes"
+HOMEPAGE="
+       https://pypi.org/project/xattr/
+       https://github.com/xattr/xattr
+"
+
+SLOT="0"
+LICENSE="Apache-2.0"
+KEYWORDS="~amd64"
+
+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
+}

Reply via email to