diff options
Diffstat (limited to 'dev-python/pushbullet-py')
-rw-r--r-- | dev-python/pushbullet-py/Manifest | 1 | ||||
-rw-r--r-- | dev-python/pushbullet-py/pushbullet-py-0.12.0-r1.ebuild | 48 |
2 files changed, 49 insertions, 0 deletions
diff --git a/dev-python/pushbullet-py/Manifest b/dev-python/pushbullet-py/Manifest index 074428d26c35..0cd7ec8ef33c 100644 --- a/dev-python/pushbullet-py/Manifest +++ b/dev-python/pushbullet-py/Manifest @@ -1,3 +1,4 @@ DIST pushbullet.py-0.12.0.tar.gz 23769 BLAKE2B 096c5995bee7dba65b7f385c2cbd70d839b22a07b26dd1ad9c1ef64244ba97e3c2f077c9eb0ca46a2ccd7df6a27e3ee3d4d55522986e832ca109d003e77fbad6 SHA512 5394fb8e8631ba00c610c36380e2c917231207ecd25bb4e2f1f0e44c232f4dd33b99ce5b1973467844b7f46f275ea812620e6549afd42915ee8fc13e1650f758 +EBUILD pushbullet-py-0.12.0-r1.ebuild 1073 BLAKE2B 7446bdd5ef4ae8ef903368cd65e32d3fc1c00dc54011df96cc4ccf7e806d8ea7873d797ae0586dc700ed0142076c5d5873acc0b15ae6d727cde42718ad03ee84 SHA512 f34c96c330559d954aeead2c17d92c89e69e24b999ba898bbc8388fd7c1a5c98aafb9970ff72d81bc7e14ee328d9fb7e85af708b577a1a754ee75532f5992af5 EBUILD pushbullet-py-0.12.0.ebuild 1041 BLAKE2B f391cbf8590337cfa6d89ffa2299ad535dd2e7015ef2ef71fd59e8eeb86ce09debcedf646289c2b07284a69f2fb92903e967367683022b302bcf6b9a3f33d640 SHA512 d9721cd08a4e61927981f5f6753abc977816f341a116a2d9a1dcaa4ed3469ad476d8baa9e9d5224e1017cee51b55659deeb8c86afacc9a04d3e9f1b66db3a455 MISC metadata.xml 460 BLAKE2B cf0170e5833316876451e151e558f1022a0665041322e8c9c4da9bb0cdaa4c51fedcc99b25ec70b5e7b049ceb66fcc7175a07b4758fcb2e8e7b27de9deb43381 SHA512 a7a832543b0652c9667962959d1defafac26e9a4d23a1f829220270f142f9ea43bd4b27a77ea14c81d3cdd4f98c136802f0d3e5f227afa258c1455b1bbc58dec diff --git a/dev-python/pushbullet-py/pushbullet-py-0.12.0-r1.ebuild b/dev-python/pushbullet-py/pushbullet-py-0.12.0-r1.ebuild new file mode 100644 index 000000000000..4557f22d66b9 --- /dev/null +++ b/dev-python/pushbullet-py/pushbullet-py-0.12.0-r1.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( pypy3 python3_{9..11} ) + +inherit distutils-r1 + +MY_PN=${PN/-/.} +DESCRIPTION="A simple python client for pushbullet.com" +HOMEPAGE="https://github.com/randomchars/pushbullet.py" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${MY_PN}-${PV}.tar.gz" +S="${WORKDIR}/${MY_PN}-${PV}" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="examples" + +RDEPEND=" + dev-python/cryptography[${PYTHON_USEDEP}] + dev-python/python-magic[${PYTHON_USEDEP}] + dev-python/requests[${PYTHON_USEDEP}] + dev-python/websocket-client[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/mock[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +python_test() { + # Skip tests which require internet access + PUSHBULLET_API_KEY= epytest -k "not (test_auth or test_decryption)" +} + +python_install_all() { + if use examples; then + docompress -x "/usr/share/doc/${PF}/examples" + docinto examples + dodoc -r example/. + fi + distutils-r1_python_install_all +} |