39 lines
993 B
Bash
39 lines
993 B
Bash
## Copyright 1999-2017 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
# $Id$
|
|
|
|
EAPI=8
|
|
PYTHON_COMPAT=( python3_{12..14} )
|
|
DISTUTILS_SINGLE_IMPL=1
|
|
DISTUTILS_USE_PEP517=setuptools
|
|
|
|
inherit distutils-r1
|
|
|
|
DESCRIPTION="Python library to handle communication with the DuPAL V3 'dupico' board"
|
|
HOMEPAGE="https://github.com/DuPAL-PAL-DUmper/dupicolib"
|
|
if [[ ${PV} == "9999" ]] ; then
|
|
EGIT_REPO_URI="https://github.com/DuPAL-PAL-DUmper/${PN}.git"
|
|
KEYWORDS=""
|
|
inherit git-r3
|
|
else
|
|
KEYWORDS="~amd64 ~x86"
|
|
SRC_URI="https://github.com/DuPAL-PAL-DUmper/${PN}/archive/refs/tags/v${PV}.tar.gz"
|
|
fi
|
|
|
|
LICENSE="MIT"
|
|
SLOT="0"
|
|
IUSE="test"
|
|
RESTRICT="test"
|
|
|
|
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
|
|
|
RDEPEND="$(python_gen_cond_dep '
|
|
>=dev-python/pyserial-3.5[${PYTHON_USEDEP}]
|
|
>=dev-python/mypy-1.11.1[${PYTHON_USEDEP}]
|
|
>=dev-python/build-1.1.1[${PYTHON_USEDEP}]
|
|
test? ( >=dev-python/pytest-8.3.2[${PYTHON_USEDEP}] )
|
|
')
|
|
"
|
|
|
|
DEPEND="${RDEPEND}"
|