2022-03-11 04:33:28 +01:00
|
|
|
# Copyright 1999-2022 Gentoo Authors
|
2021-09-26 20:02:10 +02:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
|
|
EAPI=8
|
2022-03-11 04:33:28 +01:00
|
|
|
|
|
|
|
|
PYTHON_COMPAT=( python3_{8..9} )
|
2021-09-26 20:02:10 +02:00
|
|
|
|
|
|
|
|
inherit distutils-r1
|
|
|
|
|
|
|
|
|
|
DESCRIPTION="access memcached via it's binary protocol with SASL auth support"
|
|
|
|
|
HOMEPAGE="
|
|
|
|
|
https://github.com/jaysonsantos/python-binary-memcached
|
2022-03-11 04:33:28 +01:00
|
|
|
https://pypi.org/project/python-binary-memcached/
|
2021-09-26 20:02:10 +02:00
|
|
|
"
|
2022-03-18 09:08:01 +01:00
|
|
|
SRC_URI="https://github.com/jaysonsantos/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}-gh.tar.gz"
|
2021-09-26 20:02:10 +02:00
|
|
|
|
|
|
|
|
LICENSE="MIT"
|
|
|
|
|
SLOT="0"
|
|
|
|
|
KEYWORDS="~amd64"
|
|
|
|
|
|
2022-03-15 01:42:19 +01:00
|
|
|
RDEPEND="
|
|
|
|
|
dev-python/six[${PYTHON_USEDEP}]
|
|
|
|
|
dev-python/uhashring[${PYTHON_USEDEP}]
|
|
|
|
|
"
|
2021-09-26 20:02:10 +02:00
|
|
|
DEPEND="
|
|
|
|
|
${RDEPEND}
|
2022-03-17 14:44:56 +01:00
|
|
|
>=dev-python/m2r-0.2.1[${PYTHON_USEDEP}]
|
2022-03-15 01:42:19 +01:00
|
|
|
test? ( net-misc/memcached )
|
|
|
|
|
"
|
|
|
|
|
BDEPEND="
|
2021-09-26 20:02:10 +02:00
|
|
|
test? (
|
2022-03-11 04:33:28 +01:00
|
|
|
dev-python/mistune[${PYTHON_USEDEP}]
|
|
|
|
|
>=dev-python/pytest-6.2[${PYTHON_USEDEP}]
|
|
|
|
|
>=dev-python/trustme-0.9.0[${PYTHON_USEDEP}]
|
|
|
|
|
>=dev-python/mock-4.0[${PYTHON_USEDEP}]
|
2021-09-26 20:02:10 +02:00
|
|
|
)
|
|
|
|
|
"
|
|
|
|
|
|
2022-03-15 01:42:19 +01:00
|
|
|
RESTRICT="test" # tests require a running memcached
|
|
|
|
|
|
2021-09-26 20:02:10 +02:00
|
|
|
distutils_enable_tests pytest
|
2022-03-24 14:19:20 +01:00
|
|
|
|
|
|
|
|
src_prepare() {
|
|
|
|
|
rm README.rst || die
|
|
|
|
|
default
|
|
|
|
|
}
|