gentoo/dev-python/zenlib/zenlib-3.2.1.ebuild
Zen 804252c08c
dev-python/zenlib: add 3.2.1 with fixed tests
just skip the tests where namespace stuff is being run if the user
running the tests does not have subuid/subgid allocations

tests are automatically run in CI and as part of development (using an
account which has allocations)

Signed-off-by: Zen <z@pyl.onl>
Part-of: https://github.com/gentoo/gentoo/pull/45599
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2026-02-02 05:00:12 +01:00

27 lines
595 B
Bash

# Copyright 2023-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{11..14} )
inherit distutils-r1
DESCRIPTION="Useful python decorators and utilities"
HOMEPAGE="https://github.com/desultory/zenlib/"
SRC_URI="
https://github.com/desultory/zenlib/archive/${PV}.tar.gz
-> ${P}.gh.tar.gz
"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~arm64 ~riscv ~x86"
distutils_enable_tests unittest
python_test() {
CI=true eunittest tests # Set CI=true to disable namespace module tests and imports
}