diff options
Diffstat (limited to 'dev-python/pickleshare/pickleshare-0.7.2.ebuild')
-rw-r--r-- | dev-python/pickleshare/pickleshare-0.7.2.ebuild | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/dev-python/pickleshare/pickleshare-0.7.2.ebuild b/dev-python/pickleshare/pickleshare-0.7.2.ebuild new file mode 100644 index 000000000000..2b2a7d26fcce --- /dev/null +++ b/dev-python/pickleshare/pickleshare-0.7.2.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +PYTHON_COMPAT=( python2_7 python3_{3,4,5} ) + +inherit distutils-r1 + +DESCRIPTION="A small 'shelve' like datastore with concurrency support" +HOMEPAGE="https://github.com/pickleshare/pickleshare" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" +IUSE="test" + +RDEPEND=" + $(python_gen_cond_dep 'dev-python/pathlib[${PYTHON_USEDEP}]' python2_7 python3_3) + >=dev-python/path-py-6.2[${PYTHON_USEDEP}]" +DEPEND="${RDEPEND} + test? ( dev-python/pytest[${PYTHON_USEDEP}] )" + +# test_pickleshare.py is not included in the pickleshare-0.7.2 source +# we fetched from pipy +RESTRICT="test" + +python_test() { + distutils_install_for_testing + cd "${TEST_DIR}"/lib || die + cp "${S}"/test_pickleshare.py "${TEST_DIR}"/lib/ || die + py.test || die +} |