diff options
| author | Palica <palica+gitlab@liguros.net> | 2020-06-23 22:35:08 +0200 |
|---|---|---|
| committer | Palica <palica+gitlab@liguros.net> | 2020-06-23 22:35:08 +0200 |
| commit | ecdac123787b96ce6649f0f91da12ea6458cc2b1 (patch) | |
| tree | b89c74d9e6fe6e8aebc4c77bcbeb4ab73214127d /dev-python/python-memcached | |
| parent | 1be72aa41cf41dedadeecf59dca9f01de6381f5e (diff) | |
| download | baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.tar.gz baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.tar.xz baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.zip | |
Updating liguros repo
Diffstat (limited to 'dev-python/python-memcached')
| -rw-r--r-- | dev-python/python-memcached/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/python-memcached/metadata.xml | 20 | ||||
| -rw-r--r-- | dev-python/python-memcached/python-memcached-1.59.ebuild | 47 |
3 files changed, 68 insertions, 0 deletions
diff --git a/dev-python/python-memcached/Manifest b/dev-python/python-memcached/Manifest new file mode 100644 index 000000000000..9a85bb369453 --- /dev/null +++ b/dev-python/python-memcached/Manifest @@ -0,0 +1 @@ +DIST python-memcached-1.59.tar.gz 22210 BLAKE2B 50387821d50cf974ada738346e016eb736043078721bf905782f41df1f27574244d03b6b94ac9e5ccab7aeecfa8ca4c5a78cec2c41d15fda8756c7cb3bce9aa1 SHA512 a25cbb9efb3babe85e1523bdabfe4644b93b3a6a7268787a3928f724f833ce0eea7d2ef676d1b7f894cdfe293129975b35cb46ec553c92810dbc18013bfabece diff --git a/dev-python/python-memcached/metadata.xml b/dev-python/python-memcached/metadata.xml new file mode 100644 index 000000000000..aa649aa94072 --- /dev/null +++ b/dev-python/python-memcached/metadata.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>robbat2@gentoo.org</email> + <name>Robin H. Johnson</name> + </maintainer> + <maintainer type="project"> + <email>python@gentoo.org</email> + <name>Python</name> + </maintainer> + <longdescription lang="en"> +This is a Python based API (implemented in 100% python) for communicating with +the memcached distributed memory object cache daemon. +</longdescription> + <upstream> + <remote-id type="pypi">python-memcached</remote-id> + </upstream> + <origin>gentoo-staging</origin> +</pkgmetadata> diff --git a/dev-python/python-memcached/python-memcached-1.59.ebuild b/dev-python/python-memcached/python-memcached-1.59.ebuild new file mode 100644 index 000000000000..4a7c105d041d --- /dev/null +++ b/dev-python/python-memcached/python-memcached-1.59.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +PYTHON_COMPAT=( python3_{6,7} ) + +inherit distutils-r1 + +DESCRIPTION="Pure python memcached client" +HOMEPAGE=" + https://www.tummy.com/Community/software/python-memcached/ + https://pypi.org/project/python-memcached/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="OSL-2.0" +SLOT="0" +KEYWORDS="amd64 ~arm64 ppc x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos" +IUSE="test" + +DEPEND=" + dev-python/setuptools[${PYTHON_USEDEP}] + test? ( + net-misc/memcached + dev-python/nose[${PYTHON_USEDEP}] + )" +RDEPEND="dev-python/six[${PYTHON_USEDEP}]" + +# Tests try to connect to memcached via TCP/IP. Please do not re-enable +# until you get them all to pass properly while using the UNIX socket +# only and not even trying to connect to memcached over TCP/IP. +RESTRICT=test + +python_test() { + # Note: partial. Needs fixing. Stuff like that. + + cd "${TMPDIR}" || die + + local memcached_opts=( -d -P memcached.pid -s memcached.socket ) + [[ ${EUID} == 0 ]] && memcached_opts+=( -u portage ) + + memcached "${memached_opts[@]}" || die + + "${PYTHON}" memcache.py --do-unix || die "Tests fail with ${EPYTHON}" + + kill "$(<memcached.pid)" || die + rm memcached.pid || die +} |
