src_prepare-overlay/dev-python/pyaaf2/pyaaf2-1.4.0.ebuild
Alfred Wingate e91f7de0e8
dev-python/pyaaf2: bump EAPI, PYTHON_COMPAT. Improve tests/docs
Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Alfred Wingate <parona@protonmail.com>
2021-06-30 21:15:52 +03:00

33 lines
724 B
Bash

# Copyright 2020-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=(python3_{8..10})
inherit distutils-r1
DESCRIPTION="Read and write Advanced Authoring Format (AAF) files"
HOMEPAGE="http://pyaaf.readthedocs.io/"
SRC_URI="https://github.com/markreidvfx/pyaaf2/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
DEPEND="
test? (
dev-python/matplotlib[${PYTHON_USEDEP}]
dev-python/numpy[${PYTHON_USEDEP}]
)
"
distutils_enable_tests unittest
distutils_enable_sphinx docs/source
python_test() {
# Tests import from tests/common.py which is breaks unless the dir is added to PYTHONPATH
PYTHONPATH="${S}/tests"
eunittest
}