38 lines
752 B
Bash
38 lines
752 B
Bash
|
# Copyright 1999-2018 Gentoo Foundation
|
||
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
|
EAPI=6
|
||
|
|
||
|
PYTHON_COMPAT=( python2_7 python3_{5,6,7,8} )
|
||
|
|
||
|
inherit distutils-r1
|
||
|
|
||
|
DESCRIPTION="SMPP library for python"
|
||
|
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||
|
HOMEPAGE="https://github.com/podshumok/python-smpplib"
|
||
|
|
||
|
LICENSE="LGPL-2.1+"
|
||
|
SLOT="0"
|
||
|
KEYWORDS="~amd64 ~x86"
|
||
|
IUSE="test"
|
||
|
|
||
|
RDEPEND="
|
||
|
${PYTHON_DEPS}
|
||
|
"
|
||
|
DEPEND="
|
||
|
test? (
|
||
|
dev-python/pytest[${PYTHON_USEDEP}]
|
||
|
dev-python/mock[${PYTHON_USEDEP}]
|
||
|
)
|
||
|
dev-python/setuptools[${PYTHON_USEDEP}]
|
||
|
dev-python/six[${PYTHON_USEDEP}]
|
||
|
${RDEPEND}
|
||
|
"
|
||
|
|
||
|
DOCS="README.md"
|
||
|
|
||
|
src_prepare() {
|
||
|
sed -i -e 's;packages=find_packages();packages=find_packages(exclude=["tests"]);' "setup.py"
|
||
|
eapply_user
|
||
|
}
|