From b8e4142ff630144ab5093d4948496de00a186b16 Mon Sep 17 00:00:00 2001 From: Andreas Billmeier Date: Sun, 24 Nov 2019 15:53:49 +0100 Subject: [PATCH] dg to mitemp-bt-0.0.1 --- CHANGELOG.txt | 2 +- dev-python/mitemp-bt/Manifest | 2 ++ dev-python/mitemp-bt/mitemp-bt-0.0.1.ebuild | 33 +++++++++++++++++++++ 3 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 dev-python/mitemp-bt/mitemp-bt-0.0.1.ebuild diff --git a/CHANGELOG.txt b/CHANGELOG.txt index c6917af28..949d31bc4 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -1,5 +1,5 @@ 2019-11 23 (reverse added today) - * dg to messagebird-1.2.0 + * dg to messagebird-1.2.0, mitemp-bt-0.0.1 * dg to py-melissa-climate-2.0.0 * add pylutron-caseta-0.5.0 and pylutron-caseta-0.5.1 * dg to pykwb-0.0.8 diff --git a/dev-python/mitemp-bt/Manifest b/dev-python/mitemp-bt/Manifest index c0484c235..1760b3ab5 100644 --- a/dev-python/mitemp-bt/Manifest +++ b/dev-python/mitemp-bt/Manifest @@ -1,3 +1,5 @@ +DIST mitemp-bt-0.0.1.tar.gz 8024 BLAKE2B cd73fb0c3186fca9c8187c2f2029fd322abb7f9047925b88873f5e56762d5f314f0713126691059fdbc294470d7f08050966b2bf87b0352843bf1e2287bfeefd SHA512 cbe3129d9166869c8f03884dff70e1db98426a488b95902721565dc3b5e322381ad674dac035f29217a29598b1991293263116d021b058402ea4f3ca0c37393b DIST mitemp-bt-0.0.3.tar.gz 9169 BLAKE2B 2793766a1d3873f9474d2d304104001d280e2b09585b186736f1d3b19a8ae2bf8bc12727b01ca1731bf3790fe7aaf75d7edb6c7fb721c125a24e8647c141481d SHA512 eb72756f3d59797fe195572f000cad4c36b5347998117ebb26460875acef9f1d2f3d313884b87d80b097ba6c97174b6d7cfff2f2c90ec1c99373275c3afe0c97 +EBUILD mitemp-bt-0.0.1.ebuild 849 BLAKE2B 4adf4cf879f16d2971b2a295df1988f978590185b56dd82ac4b96c861cba4c54448b7be8f7804e33a5fdb0377228b4db433519ecc10d571adf2d669138139015 SHA512 cce33cad2be1fa36d4ca09fbf3ff01e58574166367822e75877ddc107489d132949a4d94c7b34b5a7ed8f24064f3de1d18e70f82dec70e93d04a38ef5c4df73c EBUILD mitemp-bt-0.0.3.ebuild 849 BLAKE2B 4adf4cf879f16d2971b2a295df1988f978590185b56dd82ac4b96c861cba4c54448b7be8f7804e33a5fdb0377228b4db433519ecc10d571adf2d669138139015 SHA512 cce33cad2be1fa36d4ca09fbf3ff01e58574166367822e75877ddc107489d132949a4d94c7b34b5a7ed8f24064f3de1d18e70f82dec70e93d04a38ef5c4df73c MISC metadata.xml 460 BLAKE2B cfba0a7d9ddad1248dace274232728f5702d1afd090603d69551aa3404699e5ab13b37cab119fd901c9ccc61a26a848a3288c614d7ffb1b1a302ef9cb50f7bb0 SHA512 60e3bf7c72390aadfc71ada67d00daf6ae5f335335a480b295f05021107857cce7bdb4b0ee450059f7b333f85d93f8b6dfe58cb2b4d117c73222e58d340ff166 diff --git a/dev-python/mitemp-bt/mitemp-bt-0.0.1.ebuild b/dev-python/mitemp-bt/mitemp-bt-0.0.1.ebuild new file mode 100644 index 000000000..1bddeaf98 --- /dev/null +++ b/dev-python/mitemp-bt/mitemp-bt-0.0.1.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +PYTHON_COMPAT=( python3_{6,7} ) + +inherit distutils-r1 + +MY_PN=${PN/-/_} +DESCRIPTION="Library to read data from Mi Temperature and Humidity Sensor (V2) using Bluetooth LE with LCD display" +HOMEPAGE="https://github.com/ratcashdev/mitemp https://pypi.org/project/mitemp-bt/" +SRC_URI="mirror://pypi/${P:0:1}/${PN}/${MY_PN}-${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="test" + +RDEPEND="~dev-python/btlewrap-0.0.8[${PYTHON_USEDEP}]" +DEPEND="${REDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}] + test? ( + dev-python/nose[${PYTHON_USEDEP}] + dev-python/pytest[${PYTHON_USEDEP}] + )" + +S="${WORKDIR}/${MY_PN}-${PV}" + +python_test() { + nosetests --verbose || die + py.test -v -v || die +}