diff options
author | Tobias Klausmann <klausman@gentoo.org> | 2018-07-17 09:58:14 +0200 |
---|---|---|
committer | Tobias Klausmann <klausman@gentoo.org> | 2018-07-17 09:58:14 +0200 |
commit | 03594d900697f682d0251527bdcfe48e50d88875 (patch) | |
tree | eec11660f85939b84ccd0526480504a45253f2d0 /app-admin/lib_users/lib_users-0.11-r1.ebuild | |
parent | media-video/ffmpeg: bp us patch to fix mpv crash regression (diff) | |
download | gentoo-03594d900697f682d0251527bdcfe48e50d88875.tar.gz gentoo-03594d900697f682d0251527bdcfe48e50d88875.tar.bz2 gentoo-03594d900697f682d0251527bdcfe48e50d88875.zip |
app-admin/lib_users: Enable Pyhton 3.7 support
Package-Manager: Portage-2.3.43, Repoman-2.3.10
Diffstat (limited to 'app-admin/lib_users/lib_users-0.11-r1.ebuild')
-rw-r--r-- | app-admin/lib_users/lib_users-0.11-r1.ebuild | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/app-admin/lib_users/lib_users-0.11-r1.ebuild b/app-admin/lib_users/lib_users-0.11-r1.ebuild new file mode 100644 index 000000000000..b1a72eed7a53 --- /dev/null +++ b/app-admin/lib_users/lib_users-0.11-r1.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6,3_7} ) + +inherit python-r1 + +DESCRIPTION="Check for mapped libs and open files that are marked as deleted" +HOMEPAGE="https://github.com/klausman/lib_users" +SRC_URI="https://github.com/klausman/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux" +IUSE="test" + +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +DEPEND="${PYTHON_DEPS} + test? ( + dev-python/nose[${PYTHON_USEDEP}] + dev-python/backports-unittest-mock[${PYTHON_USEDEP}] + )" +RDEPEND="${PYTHON_DEPS}" + +src_test() { + python_foreach_impl nosetests --verbosity=2 +} + +my_install() { + python_newscript lib_users.py lib_users + python_newscript fd_users.py fd_users + # lib_users_util/ contains a test script we don't want, so do things by hand + python_moduleinto lib_users_util + python_domodule lib_users_util/common.py + python_domodule lib_users_util/__init__.py +} + +src_install() { + python_foreach_impl my_install + dodoc README.md TODO +} |