diff options
author | Marek Szuba <marecki@gentoo.org> | 2024-01-30 15:02:50 +0000 |
---|---|---|
committer | Marek Szuba <marecki@gentoo.org> | 2024-01-30 15:14:57 +0000 |
commit | dbd8ba325de9592f85434c9dd5134e36a5525d6d (patch) | |
tree | 99d22aa0039ff96b91c70c2648ea32d0f5f7de61 /dev-python/pslab/pslab-3.0.0.ebuild | |
parent | dev-python/mcbootflash: new package, add 8.0.0 (diff) | |
download | gentoo-dbd8ba325de9592f85434c9dd5134e36a5525d6d.tar.gz gentoo-dbd8ba325de9592f85434c9dd5134e36a5525d6d.tar.bz2 gentoo-dbd8ba325de9592f85434c9dd5134e36a5525d6d.zip |
dev-python/pslab: add 3.0.0
Closes: https://bugs.gentoo.org/921434
Signed-off-by: Marek Szuba <marecki@gentoo.org>
Diffstat (limited to 'dev-python/pslab/pslab-3.0.0.ebuild')
-rw-r--r-- | dev-python/pslab/pslab-3.0.0.ebuild | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/dev-python/pslab/pslab-3.0.0.ebuild b/dev-python/pslab/pslab-3.0.0.ebuild new file mode 100644 index 000000000000..d7fb6b512c37 --- /dev/null +++ b/dev-python/pslab/pslab-3.0.0.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=flit +PYTHON_COMPAT=( python3_{10..12} ) + +inherit distutils-r1 + +MY_P=pslab-python-${PV} +DESCRIPTION="Python library for communicating with Pocket Science Lab" +HOMEPAGE=" + https://pslab.io/ + https://github.com/fossasia/pslab-python/ + https://pypi.org/project/pslab/ +" +SRC_URI=" + https://github.com/fossasia/pslab-python/archive/v${PV}.tar.gz + -> ${MY_P}.gh.tar.gz +" +S=${WORKDIR}/${MY_P} + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=" + >=dev-python/mcbootflash-8.0.0[${PYTHON_USEDEP}] + >=dev-python/numpy-1.16.3[${PYTHON_USEDEP}] + >=dev-python/pyserial-3.4[${PYTHON_USEDEP}] + >=dev-python/scipy-1.3.0[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/pytest-mock[${PYTHON_USEDEP}] + ) +" + +PATCHES=( + "${FILESDIR}"/${PN}-2.5.0-ad9833_sys_version.patch + "${FILESDIR}"/${PN}-3.0.0-pytest_record.patch +) + +EPYTEST_DESELECT=( + # Flaky in 2.5.0 + tests/test_logic_analyzer.py::test_stop +) + +distutils_enable_sphinx docs dev-python/recommonmark +distutils_enable_tests pytest |