summaryrefslogtreecommitdiff
path: root/dev-python/python-binary-memcached
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/python-binary-memcached')
-rw-r--r--dev-python/python-binary-memcached/Manifest1
-rw-r--r--dev-python/python-binary-memcached/metadata.xml16
-rw-r--r--dev-python/python-binary-memcached/python-binary-memcached-0.31.1.ebuild46
3 files changed, 63 insertions, 0 deletions
diff --git a/dev-python/python-binary-memcached/Manifest b/dev-python/python-binary-memcached/Manifest
new file mode 100644
index 000000000000..c53caf703cb7
--- /dev/null
+++ b/dev-python/python-binary-memcached/Manifest
@@ -0,0 +1 @@
+DIST python-binary-memcached-0.31.1-gh.tar.gz 93809 BLAKE2B 6a7a6921a7ff24427ddb5443acf7a81c43a06baaadaead9caf50a8eb758d05d43430dd581e69d6dd4e83799e52e93949250cbf69309bb860857c63972ad0fc2c SHA512 3fbf0cbf05b42a5e28f01542ff0d190d138104cab97a5b05c17133f245fe37aad97b4daba31c203d854a4228fc9d49fd0306d93a45541a8cf7d173afc81c70ab
diff --git a/dev-python/python-binary-memcached/metadata.xml b/dev-python/python-binary-memcached/metadata.xml
new file mode 100644
index 000000000000..399b6e3379e6
--- /dev/null
+++ b/dev-python/python-binary-memcached/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>lssndrbarbieri@gmail.com</email>
+ <name>Alessandro Barbieri</name>
+ </maintainer>
+ <longdescription lang="en">
+A pure python module (thread safe) to access memcached via it's binary with SASL auth support.
+The main purpose of this module it to be able to communicate with memcached using binary protocol and support authentication, so it can work with Heroku for example.
+ </longdescription>
+ <upstream>
+ <remote-id type="github">jaysonsantos/python-binary-memcached</remote-id>
+ <remote-id type="pypi">python-binary-memcached</remote-id>
+ </upstream>
+</pkgmetadata>
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
+}