summaryrefslogtreecommitdiff
path: root/dev-python/python-binary-memcached/python-binary-memcached-0.31.1.ebuild
blob: 1589314e0f28ed25c341c2fd75556c52c544c9fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

PYTHON_COMPAT=( python3_{7,8,9,10} pypy3 )

inherit distutils-r1

DESCRIPTION="access memcached via it's binary protocol with SASL auth support"
HOMEPAGE="
	https://github.com/jaysonsantos/python-binary-memcached
	https://pypi.org/project/python-binary-memcached/
"
SRC_URI="https://github.com/jaysonsantos/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}-gh.tar.gz"

LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"

RDEPEND="
	dev-python/six[${PYTHON_USEDEP}]
	dev-python/uhashring[${PYTHON_USEDEP}]
"
DEPEND="
	${RDEPEND}
	>=dev-python/m2r-0.2.1[${PYTHON_USEDEP}]
	test? ( net-misc/memcached )
"
BDEPEND="
	test? (
		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}]
	)
"

RESTRICT="test" # tests require a running memcached

distutils_enable_tests pytest

src_prepare() {
	rm README.rst || die
	default
}