aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>2024-01-27 00:35:06 +0500
committerAnna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>2024-01-27 00:37:21 +0500
commit5090dc5036b3b24886e866ef59d421a21a7468e8 (patch)
treefeb33ea61173ef09f0af507356f29cd69cbb78e2
parentgui-apps/swww: fix SuboptimalCratesSeparator (diff)
downloadguru-5090dc5036b3b24886e866ef59d421a21a7468e8.tar.gz
guru-5090dc5036b3b24886e866ef59d421a21a7468e8.tar.bz2
guru-5090dc5036b3b24886e866ef59d421a21a7468e8.zip
dev-python/xattr: add 1.0.0
Closes: https://bugs.gentoo.org/835027 Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
-rw-r--r--dev-python/xattr/Manifest1
-rw-r--r--dev-python/xattr/metadata.xml18
-rw-r--r--dev-python/xattr/xattr-1.0.0.ebuild53
3 files changed, 63 insertions, 9 deletions
diff --git a/dev-python/xattr/Manifest b/dev-python/xattr/Manifest
index 7bb05c888..a98f97a2e 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-0.9.9.tar.gz 15508 BLAKE2B e56c262ca1f390365ed95d746a57a95a39c118ad0c50c7ece556e006d666879d5d318c1e53686b588cb6d8deb9d7f699f3962b15b2440e327b93d840f8765e4b SHA512 1c4c15d77757850290e4434f50d0fae243a9dfe2d190e68310ba35e675e1499a21cd0cd156c4b9f5325b6c2834485527fcf41ec0b255b0bbf2fde4c303f2e325
+DIST xattr-1.0.0.tar.gz 15880 BLAKE2B 4a02743379f9c80658690ee2fa2f204de17cb1f8667c23c43876f8dd88dee974b73d076dc25d46b374d32606190f26cd003b13ffb7ba5f9262e57e71d4228e9d SHA512 0939e341d960f63e181328ed39dd4ab1e8f34d87d25165d646463e793c7a135260f07b106067bbee803838a5eb003a213961137b45f0a340e81dbf659352dbce
diff --git a/dev-python/xattr/metadata.xml b/dev-python/xattr/metadata.xml
index b61fb46d1..9fbd4c548 100644
--- a/dev-python/xattr/metadata.xml
+++ b/dev-python/xattr/metadata.xml
@@ -1,13 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
- <maintainer type="person">
- <email>lssndrbarbieri@gmail.com</email>
- <name>Alessandro Barbieri</name>
- </maintainer>
- <upstream>
- <bugs-to>https://github.com/xattr/xattr/issues</bugs-to>
- <remote-id type="pypi">xattr</remote-id>
- <remote-id type="github">xattr/xattr</remote-id>
- </upstream>
+ <maintainer type="person">
+ <email>lssndrbarbieri@gmail.com</email>
+ <name>Alessandro Barbieri</name>
+ </maintainer>
+ <upstream>
+ <bugs-to>https://github.com/xattr/xattr/issues</bugs-to>
+ <remote-id type="pypi">xattr</remote-id>
+ <remote-id type="github">xattr/xattr</remote-id>
+ </upstream>
</pkgmetadata>
diff --git a/dev-python/xattr/xattr-1.0.0.ebuild b/dev-python/xattr/xattr-1.0.0.ebuild
new file mode 100644
index 000000000..cd33536e2
--- /dev/null
+++ b/dev-python/xattr/xattr-1.0.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
+}