diff options
Diffstat (limited to 'dev-python/jeepney')
-rw-r--r-- | dev-python/jeepney/Manifest | 2 | ||||
-rw-r--r-- | dev-python/jeepney/jeepney-0.7.0.ebuild | 54 |
2 files changed, 56 insertions, 0 deletions
diff --git a/dev-python/jeepney/Manifest b/dev-python/jeepney/Manifest index 925514294386..be7d106abff9 100644 --- a/dev-python/jeepney/Manifest +++ b/dev-python/jeepney/Manifest @@ -1,3 +1,5 @@ DIST jeepney-0.6.0.tar.gz 49513 BLAKE2B e5f9b5104cf07dbcd2d40c2d22b690dfd56c456ab56daf44f4abee83f0bfe7e1dfbad797348044d51e3dc20fbc6ce68bf8df54f9c1e46d7a86ceb22d3ab30f8d SHA512 140be9dd28ed853d2d41b6a8bbeb2f22c0270ce7bf33b943ec2ac010db17d4f06e253fa8637fbbb3044fe9ffdbfa1e15f0c663eb44bdd538f8c47c2e7dab3ca5 +DIST jeepney-0.7.0.tar.gz 61236 BLAKE2B ec477ed0d96d7d82a256c7f62900eff0282ebec4545e30807fd62cffb419ed763fd8042bdd4d72c6cf43ac09d24af9cd86797b1baec61ad5965e51b3d669175d SHA512 b1fac480da0d8798b28eae30cb22ee97d4f73a11922f7b1bce86eebf938c2980414c2d026ef5a1cdcd95813724873700d348b04ba337aaac0706b2c8b38ea6c2 EBUILD jeepney-0.6.0.ebuild 1038 BLAKE2B 2c7df2b5380f85a8f19645135db863eac3038e58a031065d2a5f491fd5327651a774e37e7e434f1846bbe49abeeec90229c6874081b6c39a5116b08860f4b1b3 SHA512 f6143bbffb239ff02ee46ef558ae5296b98abb3e0a8387abf49a8776d7acf131ec348ba98ae63bfc83b9bb0cc454e0637eeb8e5bd435533edb9277fbf87de9f7 +EBUILD jeepney-0.7.0.ebuild 1205 BLAKE2B 4a9f93c53c0a5fe4eca0326046ae645c10306bcda750a76b11389f7d4b1c5001586f526db5d5c1a4078242a380c68f6867de68229f3a3e79abc88f26caa7c7af SHA512 c4d2a7747a95b4cb098940c881fbf5e89658bbf00e5abc1e2aa424bd8b2255f8c06f1de9a201be9099d370d7e2a1b15f3acb0fd70764198288ba24745f7cb1a5 MISC metadata.xml 456 BLAKE2B e597aacc0128f9cd06d21a03ca156343861a56adba6449e12127025265c6019308ba2e8f360d7a4f43bbca3f95a78789d964bdd3e5bd5fea7d21d7b8eb413c74 SHA512 6cb3b5fae02190cce838221a1d5269bc005f985d5935f77880b066999340818338a747a9e24aa5d39ab71f69c842747068e3b573dcf475c7d552af1bc9af031b diff --git a/dev-python/jeepney/jeepney-0.7.0.ebuild b/dev-python/jeepney/jeepney-0.7.0.ebuild new file mode 100644 index 000000000000..3a00e0fbbd6f --- /dev/null +++ b/dev-python/jeepney/jeepney-0.7.0.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_SETUPTOOLS=no +PYTHON_COMPAT=( pypy3 python3_{8..10} ) + +inherit distutils-r1 + +DESCRIPTION="Low-level, pure Python DBus protocol wrapper" +HOMEPAGE="https://gitlab.com/takluyver/jeepney" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64" +IUSE="examples" + +BDEPEND=" + test? ( + dev-python/pytest-asyncio[${PYTHON_USEDEP}] + dev-python/testpath[${PYTHON_USEDEP}] + sys-apps/dbus + $(python_gen_cond_dep ' + dev-python/pytest-trio[${PYTHON_USEDEP}] + dev-python/trio[${PYTHON_USEDEP}] + ' python3_{8..9}) + ) +" + +distutils_enable_tests pytest + +distutils_enable_sphinx docs \ + dev-python/sphinx_rtd_theme + +python_test() { + local ignore=() + # keep in sync with python_gen_cond_dep! + if ! has "${EPYTHON}" python3.{8..9}; then + ignore+=( jeepney/io/tests/test_trio.py ) + fi + + dbus-run-session pytest -vv -ra -l ${ignore[@]/#/--ignore } || + die "tests failed with ${EPYTHON}" +} + +python_install_all() { + if use examples; then + docompress -x "/usr/share/doc/${PF}/examples" + dodoc -r examples + fi + distutils-r1_python_install_all +} |