summaryrefslogtreecommitdiff
path: root/dev-python/python-binary-memcached/python-binary-memcached-0.31.1.ebuild
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/python-binary-memcached/python-binary-memcached-0.31.1.ebuild')
-rw-r--r--dev-python/python-binary-memcached/python-binary-memcached-0.31.1.ebuild46
1 files changed, 46 insertions, 0 deletions
diff --git a/dev-python/python-binary-memcached/python-binary-memcached-0.31.1.ebuild b/dev-python/python-binary-memcached/python-binary-memcached-0.31.1.ebuild
new file mode 100644
index 000000000000..3e4986c0bc3c
--- /dev/null
+++ b/dev-python/python-binary-memcached/python-binary-memcached-0.31.1.ebuild
@@ -0,0 +1,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} )
+
+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
+}