mirror of
https://github.com/pentoo/pentoo-overlay
synced 2025-12-06 16:33:09 +01:00
pymodbus: new ebuild, required by some rfid tools
This commit is contained in:
parent
6b9adf9b0b
commit
4c9e2cdcb3
5 changed files with 102 additions and 0 deletions
1
dev-python/coverage/Manifest
Normal file
1
dev-python/coverage/Manifest
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
DIST coverage-4.5.2.tar.gz 384845 BLAKE2B a7b4f249a68e025449d26ef8ee2194b9ce355c979d1f5192a7863a0ab0089f9deb3a8e63a39bef528ed7c58fbcc7cd4bc193fea3a135f5996a6655268a6b7a93 SHA512 0d98c8118648a319ac6f3b4c4c6f1ff8a92085bbe8276dd5504c8df4638933f920d7382d8e6de8e16bff43b62091310e0eab7b7722c6d28c976baedbfae3d03e
|
||||||
44
dev-python/coverage/coverage-4.5.2.ebuild
Normal file
44
dev-python/coverage/coverage-4.5.2.ebuild
Normal file
|
|
@ -0,0 +1,44 @@
|
||||||
|
# Copyright 1999-2018 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=5
|
||||||
|
|
||||||
|
PYTHON_COMPAT=( python2_7 python3_{4,5,6,7} pypy pypy3 )
|
||||||
|
PYTHON_REQ_USE="threads(+)"
|
||||||
|
|
||||||
|
inherit distutils-r1
|
||||||
|
|
||||||
|
DESCRIPTION="Code coverage measurement for Python"
|
||||||
|
HOMEPAGE="https://coverage.readthedocs.io/en/latest/ https://pypi.org/project/coverage/"
|
||||||
|
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="BSD"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
|
||||||
|
IUSE="test"
|
||||||
|
|
||||||
|
RDEPEND=""
|
||||||
|
DEPEND="
|
||||||
|
>=dev-python/setuptools-18.4[${PYTHON_USEDEP}]
|
||||||
|
test? (
|
||||||
|
dev-python/PyContracts[${PYTHON_USEDEP}]
|
||||||
|
dev-python/mock[${PYTHON_USEDEP}]
|
||||||
|
dev-python/nose[${PYTHON_USEDEP}]
|
||||||
|
)
|
||||||
|
"
|
||||||
|
|
||||||
|
python_compile() {
|
||||||
|
if [[ ${EPYTHON} == python2.7 ]]; then
|
||||||
|
local CFLAGS="${CFLAGS} -fno-strict-aliasing"
|
||||||
|
export CFLAGS
|
||||||
|
fi
|
||||||
|
|
||||||
|
distutils-r1_python_compile
|
||||||
|
}
|
||||||
|
|
||||||
|
python_test() {
|
||||||
|
cd "${BUILD_DIR}"/lib || die
|
||||||
|
[[ "${PYTHON}" =~ pypy ]] && export COVERAGE_NO_EXTENSION=no
|
||||||
|
${PYTHON} "${S}"/igor.py test_with_tracer py || die
|
||||||
|
${PYTHON} "${S}"/igor.py test_with_tracer c || die
|
||||||
|
}
|
||||||
19
dev-python/coverage/metadata.xml
Normal file
19
dev-python/coverage/metadata.xml
Normal file
|
|
@ -0,0 +1,19 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||||
|
<pkgmetadata>
|
||||||
|
<maintainer type="person">
|
||||||
|
<email>robbat2@gentoo.org</email>
|
||||||
|
<name>Robin H. Johnson</name>
|
||||||
|
</maintainer>
|
||||||
|
<maintainer type="project">
|
||||||
|
<email>python@gentoo.org</email>
|
||||||
|
<name>Python</name>
|
||||||
|
</maintainer>
|
||||||
|
<longdescription lang="en">Coverage.py is a Python module that measures code coverage during Python
|
||||||
|
execution. It uses the code analysis tools and tracing hooks provided in the
|
||||||
|
Python standard library to determine which lines are executable, and which have
|
||||||
|
been executed.</longdescription>
|
||||||
|
<upstream>
|
||||||
|
<remote-id type="pypi">coverage</remote-id>
|
||||||
|
</upstream>
|
||||||
|
</pkgmetadata>
|
||||||
1
dev-python/pymodbus/Manifest
Normal file
1
dev-python/pymodbus/Manifest
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
DIST pymodbus-2.1.0.tar.gz 130214 BLAKE2B 52b754c06c28c104da10cecafe3212b00b919e794f0de8f753fc2410c12240165e3177a0a1f428eed15a97dbe65354cd79872d228c919aad587cf7e2e163fc1b SHA512 b7b8680b1c9618053f1bdb04a83c283a74ab5c867ef729786ff24a29d63828ff8d4484d388ce827be3bc45d186ee77b7c76f1633496c6de21a960a094b5d68cd
|
||||||
37
dev-python/pymodbus/pymodbus-2.1.0.ebuild
Normal file
37
dev-python/pymodbus/pymodbus-2.1.0.ebuild
Normal file
|
|
@ -0,0 +1,37 @@
|
||||||
|
# Copyright 1999-2019 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=6
|
||||||
|
|
||||||
|
PYTHON_COMPAT=( python2_7 python3_{5,6,7} )
|
||||||
|
|
||||||
|
inherit distutils-r1
|
||||||
|
|
||||||
|
DESCRIPTION="A fully featured modbus protocol stack in python"
|
||||||
|
HOMEPAGE="https://github.com/riptideio/pymodbus/ https://pypi.org/project/pymodbus/"
|
||||||
|
SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="BSD"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
|
||||||
|
IUSE="test"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
>=dev-python/pyserial-3.4[${PYTHON_USEDEP}]
|
||||||
|
~dev-python/six-1.11.0[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/coverage-4.4[${PYTHON_USEDEP}]
|
||||||
|
~dev-python/mock-2.0.0[${PYTHON_USEDEP}]
|
||||||
|
~dev-python/nose-1.3.7-r3[${PYTHON_USEDEP}]
|
||||||
|
~dev-python/pep8-1.7.0[${PYTHON_USEDEP}]
|
||||||
|
"
|
||||||
|
DEPEND="${REDEPEND}
|
||||||
|
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
|
||||||
|
}
|
||||||
Loading…
Reference in a new issue