diff --git a/dev-python/pyvisa/Manifest b/dev-python/pyvisa/Manifest new file mode 100644 index 0000000000..2ff8a6bfb1 --- /dev/null +++ b/dev-python/pyvisa/Manifest @@ -0,0 +1 @@ +DIST pyvisa-1.16.1.tar.gz 238621 BLAKE2B ad1bddc9092bdb47d9b7c12450e5e213af86794c65c8f7e6b41f688ffc9b7fa509247378dbee868be202994640760c8a9dfcab13f4d96d8644a33c158b462413 SHA512 e505cfa4a14bdf8c3177f06c4126c90361d4badffac03eca3fea46c2b235b946739eb4b098e78ab62a72269f57b49cfc93cc08d807373f29f2c98e9eb6017f6d diff --git a/dev-python/pyvisa/metadata.xml b/dev-python/pyvisa/metadata.xml new file mode 100644 index 0000000000..567efe4b2c --- /dev/null +++ b/dev-python/pyvisa/metadata.xml @@ -0,0 +1,26 @@ + + + + + vowstar@gmail.com + Huang Rui + + + pyvisa/pyvisa + pyvisa + https://pyvisa.readthedocs.io/ + https://github.com/pyvisa/pyvisa/issues + + + PyVISA is a Python package for controlling measurement devices and test + equipment via GPIB, RS232, USB, and Ethernet interfaces using the VISA + (Virtual Instrument Software Architecture) standard. It provides a + unified API for communicating with instruments from various manufacturers, + supporting both NI-VISA and pure-Python backends. + + + PyVISA是一个Python包,用于通过GPIB、RS232、USB和以太网接口使用VISA + (虚拟仪器软件架构)标准来控制测量设备和测试设备。它提供了统一的API, + 用于与各个制造商的仪器进行通信,支持NI-VISA和纯Python后端。 + + diff --git a/dev-python/pyvisa/pyvisa-1.16.1.ebuild b/dev-python/pyvisa/pyvisa-1.16.1.ebuild new file mode 100644 index 0000000000..e75b0d0a27 --- /dev/null +++ b/dev-python/pyvisa/pyvisa-1.16.1.ebuild @@ -0,0 +1,32 @@ +# Copyright 2025-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{11..14} ) +DISTUTILS_USE_PEP517=setuptools +PYPI_PN="pyvisa" +inherit distutils-r1 pypi + +DESCRIPTION="Python VISA bindings for GPIB, RS232, TCPIP and USB instruments" +HOMEPAGE="https://github.com/pyvisa/pyvisa https://pypi.org/project/pyvisa/" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" + +# test_visa_info requires installed entry point not available during test phase +EPYTEST_DESELECT=( + pyvisa/testsuite/test_cmd_line_tools.py::TestCmdLineTools::test_visa_info +) + +RDEPEND=" + >=dev-python/typing-extensions-4.0.0[${PYTHON_USEDEP}] +" +BDEPEND=" + dev-python/setuptools-scm[${PYTHON_USEDEP}] + ${RDEPEND} +" + +EPYTEST_PLUGINS=( ) +distutils_enable_tests pytest