pentoo-overlay/dev-python/proxy-db/proxy-db-0.2.5-r1.ebuild
Rick Farina (Zero_Chaos) 428a55aba4
zero-profile: opencv stuff
2021-09-09 12:46:51 -04:00

40 lines
1,006 B
Bash

# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{8..9} )
EGO_PN=github.com/Nekmo/${PN}
inherit distutils-r1
if [[ ${PV} = *9999* ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/Nekmo/proxy-db.git"
KEYWORDS=""
else
KEYWORDS="~amd64 ~x86"
EGIT_COMMIT="v${PV}"
SRC_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
fi
DESCRIPTION="Manage free and private proxies on local db for Python Projects"
HOMEPAGE="https://github.com/Nekmo/proxy-db"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64"
IUSE=""
RDEPEND=">=dev-python/beautifulsoup-4.5.1[${PYTHON_USEDEP}]
dev-python/click[${PYTHON_USEDEP}]
dev-python/geoip2-python[${PYTHON_USEDEP}]
dev-python/requests[${PYTHON_USEDEP}]
dev-python/sqlalchemy[${PYTHON_USEDEP}]"
DEPEND="${RDEPEND}"
python_prepare_all() {
distutils-r1_python_prepare_all
# remove package of tests to avoid installing it
rm "${S}/tests/__init__.py"
}