mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-08 22:52:59 -04:00
dev-python/xattr: add 1.3.0
Signed-off-by: dsaf <ghostyn678+git@gmail.com>
This commit is contained in:
@@ -1,2 +1,3 @@
|
||||
DIST xattr-1.1.0.tar.gz 16634 BLAKE2B e920afbdc7c154e4558debb08f3b3230295854c799dcc3a28eaddb6d5a9a011bcab460c3d9a3f944cc43705796fb1fb5c57bb3b15653a128b91be17decc7b86c SHA512 b23eb96be5d6810ff2251418a2c2687d15cc98ceed422abe4a8bce01c77dda2969525f07feaf468bc43b60b6df6d573f15787b6221ed5816a772abd93ac47f8f
|
||||
DIST xattr-1.2.0.tar.gz 17293 BLAKE2B 5a13a9fa6d0ec1f4378d37b444d2168c615ce33299bde12f7d0715837c172c6809b552043836d80ac0d7a88502e98e3fb36ca462f63def59b2913d7537cd993f SHA512 6c6cafccd05eba8abbfb1c62d5234ca04c52b608670ece395f62e70a3c8e7cfcc3f5e12a25ad888e92fb6aad2c717686c9f14448523cf4180c3effeb1556db72
|
||||
DIST xattr-1.3.0.tar.gz 17148 BLAKE2B 105c941c7cf78aecc941b59550a1b537f594b044eedee660085438f358cfdc7e3c6dae550072acaf6e1f64046a751d89a36d08e6461585d963e803c735b1aa73 SHA512 ffd680a10f4e5b4c7a00df12e426452d2f2c71986e18429f3064f660145401a4b6d8372c379a1055b36312362c259bc0c186704b7a054c3a3865b862448e6935
|
||||
|
||||
56
dev-python/xattr/xattr-1.3.0.ebuild
Normal file
56
dev-python/xattr/xattr-1.3.0.ebuild
Normal file
@@ -0,0 +1,56 @@
|
||||
# Copyright 1999-2026 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_{12..14} )
|
||||
|
||||
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