mirror of
https://github.com/gentoo-mirror/guru.git
synced 2025-04-19 07:49:00 -04:00
dev-python/pyftdi: new package, add 0.55.4
Signed-off-by: Huang Rui <vowstar@gmail.com>
This commit is contained in:
parent
6bb20db2b8
commit
5560827536
1
dev-python/pyftdi/Manifest
Normal file
1
dev-python/pyftdi/Manifest
Normal file
@ -0,0 +1 @@
|
||||
DIST pyftdi-0.55.4.gh.tar.gz 186949 BLAKE2B 4d680ff38bbb3b1abb320398fa7543f9524e52511ea3fbfcf08d00d1e69c345ad71341c3de5204c69c1023d6974fdefd763bf61d693e88a3154f2c710f5ab070 SHA512 3998572f1af781327678d99ab89ee33bda42bea6320cf62ed4e65a3c6a891754f8f17763482e0d852bff9c73ab80af8c2df8c71ed70af9079512680064b24ede
|
30
dev-python/pyftdi/metadata.xml
Normal file
30
dev-python/pyftdi/metadata.xml
Normal file
@ -0,0 +1,30 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>vowstar@gmail.com</email>
|
||||
<name>Huang Rui</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="pypi">pyftdi</remote-id>
|
||||
<remote-id type="github">eblot/pyftdi</remote-id>
|
||||
<maintainer>
|
||||
<name>Emmanuel Blot</name>
|
||||
<email>emmanuel.blot@free.fr</email>
|
||||
</maintainer>
|
||||
<bugs-to>https://github.com/eblot/pyftdi/issues</bugs-to>
|
||||
</upstream>
|
||||
<longdescription lang="en">
|
||||
PyFtdi aims at providing a user-space driver for popular FTDI devices,
|
||||
implemented in pure Python language.
|
||||
PyFtdi supports various features, including UART/Serial USB conversion with
|
||||
speeds up to 12Mbps, depending on the FTDI device. It also offers
|
||||
GPIO/Bitbang functionality, supporting 8-bit asynchronous,
|
||||
8-bit synchronous, and 8-/16-bit MPSSE modes. For SPI and I2C, PyFtdi
|
||||
provides master capabilities with simultaneous GPIO support, managing up to
|
||||
12 pins per port for SPI and up to 14 pins for I2C. Additionally, it
|
||||
includes basic JTAG master functions, EEPROM access (though some parameters
|
||||
are read-only), and experimental CBUS support on selected devices with
|
||||
4 pins per port.
|
||||
</longdescription>
|
||||
</pkgmetadata>
|
39
dev-python/pyftdi/pyftdi-0.55.4.ebuild
Normal file
39
dev-python/pyftdi/pyftdi-0.55.4.ebuild
Normal file
@ -0,0 +1,39 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{10..13} )
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
inherit distutils-r1 pypi
|
||||
|
||||
DESCRIPTION="PyFtdi provides a user-space driver for FTDI devices"
|
||||
HOMEPAGE="https://github.com/eblot/pyftdi"
|
||||
SRC_URI="https://github.com/eblot/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64 ~riscv ~x86"
|
||||
IUSE="test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
RDEPEND="
|
||||
dev-python/pyusb[${PYTHON_USEDEP}]
|
||||
dev-python/pyserial[${PYTHON_USEDEP}]
|
||||
"
|
||||
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
BDEPEND="
|
||||
test? (
|
||||
dev-python/ruamel-yaml[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
python_test() {
|
||||
FTDI_LOGLEVEL=WARNING
|
||||
FTDI_DEBUG=on
|
||||
FTDI_VIRTUAL=off "${EPYTHON}" pyftdi/tests/mockusb.py || die
|
||||
FTDI_VIRTUAL=on "${EPYTHON}" pyftdi/tests/gpio.py || die
|
||||
FTDI_VIRTUAL=on "${EPYTHON}" pyftdi/tests/eeprom_mock.py || die
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user