add elmax-api-0.0.2
This commit is contained in:
parent
6a50baa827
commit
d3e9e716e5
3
dev-python/elmax-api/Manifest
Normal file
3
dev-python/elmax-api/Manifest
Normal file
@ -0,0 +1,3 @@
|
||||
DIST elmax-api-0.0.2.tar.gz 11638 BLAKE2B fbde4a818599c2f1d6535c356dd3421bcdd09ead54e0d0a12b90a4666ca4fd51ea1dcfc6cfdd35f5f15e7823e86b208b253b12c1df88a80af0bc80f5f983a429 SHA512 4025970d2b95f30bfa583a00ddfbaa4c402db1e82a45407cad7758a4566f36554f099937a9ca98626783a4d66adc11dc1927c1f3c0eeea63f207e1d1033e9040
|
||||
EBUILD elmax-api-0.0.2.ebuild 1109 BLAKE2B ff4ed6ef8c859adb106b151d63d73a1262fb26fdda4e4fead15ef2d86a20667df8890aae964c9447ec24aafe0047062b4299ddc77d06552500c1dc0e17e0a892 SHA512 9a9defdc8abd3d5d7d0741db2b97a5a1d0b83760377fc4d612f1486067c34c3d200eac6a35dad4065723024fa64cea58e5629c1ba35163372eef7fc547b4f44c
|
||||
MISC metadata.xml 461 BLAKE2B 120deecd5f04660449e2d960dd963a5f7c1dacbb27cf0310554130f8628e2fb6b96535b8f7c9bb794d0cfe6643689a2593d04b4cb7ce83dbab861fab3c5c136d SHA512 8bcdcd36f327ead2709bc6b6cd01cff7786864ba0edc0663d6e831438533da7dc20d2b09de167ce9cf2c577edaf9def71fa2492848e596f4f6f909b8d00b1cb1
|
||||
42
dev-python/elmax-api/elmax-api-0.0.2.ebuild
Normal file
42
dev-python/elmax-api/elmax-api-0.0.2.ebuild
Normal file
@ -0,0 +1,42 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Asynchronous API Library to work with Elmax devices"
|
||||
HOMEPAGE="https://github.com/albertogeniola/elmax-api https://pypi.org/project/elmax-api/"
|
||||
MY_PN=${PN/-/_}
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${MY_PN}-${PV}.tar.gz -> ${P}.tar.gz"
|
||||
S="${WORKDIR}/${MY_PN}-${PV}"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux"
|
||||
IUSE="test"
|
||||
|
||||
DOCS="README.md"
|
||||
|
||||
RDEPEND=">=dev-python/pyjwt-1.7.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/httpx-0.18.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/yarl-1.6.3[${PYTHON_USEDEP}]"
|
||||
BDEPEND="
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
test? (
|
||||
dev-python/nose[${PYTHON_USEDEP}]
|
||||
dev-python/pytest[${PYTHON_USEDEP}]
|
||||
)"
|
||||
|
||||
python_test() {
|
||||
nosetests --verbose || die
|
||||
py.test -v -v || die
|
||||
}
|
||||
|
||||
# prevent writing a useless file to /usr
|
||||
src_prepare() {
|
||||
sed "s/data_files=\[('.', \['requirements.txt'\])\],/# data_files=\[('.', \['requirements.txt'\])\],/g" -i setup.py || die
|
||||
eapply_user
|
||||
}
|
||||
15
dev-python/elmax-api/metadata.xml
Normal file
15
dev-python/elmax-api/metadata.xml
Normal file
@ -0,0 +1,15 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>b@edevau.net</email>
|
||||
<name>Andreas Billmeier</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="pypi">elmax-api</remote-id>
|
||||
<maintainer status="unknown">
|
||||
<email>albertogeniola@gmail.com</email>
|
||||
<name>Alberto Geniola</name>
|
||||
</maintainer>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
Loading…
x
Reference in New Issue
Block a user