mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-16 02:23:16 -04:00
dev-python/xattr: add 1.2.0
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
This commit is contained in:
@@ -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
|
||||
|
||||
56
dev-python/xattr/xattr-1.2.0.ebuild
Normal file
56
dev-python/xattr/xattr-1.2.0.ebuild
Normal file
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user