2021-01-07 23:55:56 +03:00
|
|
|
# Copyright 1999-2021 Gentoo Authors
|
2020-05-13 23:11:52 +03:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
EAPI=7
|
|
|
|
|
|
|
|
# note the patch below
|
|
|
|
DISTUTILS_USE_SETUPTOOLS=no
|
2021-02-01 00:30:28 +03:00
|
|
|
PYTHON_COMPAT=( python3_{7,8,9} pypy3 )
|
2020-05-13 23:11:52 +03:00
|
|
|
|
|
|
|
inherit distutils-r1
|
|
|
|
|
|
|
|
DESCRIPTION="Module for determining appropriate platform-specific dirs"
|
|
|
|
HOMEPAGE="https://github.com/ActiveState/appdirs"
|
|
|
|
SRC_URI="https://github.com/ActiveState/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
|
|
|
|
|
|
|
LICENSE="MIT"
|
|
|
|
SLOT="0"
|
2021-01-07 23:55:56 +03:00
|
|
|
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
2020-05-13 23:11:52 +03:00
|
|
|
|
|
|
|
PATCHES=( "${FILESDIR}"/${PN}-1.4.4-distutils.patch )
|
|
|
|
|
|
|
|
python_test() {
|
|
|
|
"${PYTHON}" test/test_api.py -v || die "Tests fail with ${EPYTHON}"
|
|
|
|
}
|