diff options
author | Michał Górny <mgorny@gentoo.org> | 2023-11-01 18:07:00 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2023-11-01 18:09:13 +0100 |
commit | fe5c02996cb405ae60422a578f2d5e975fef1a2a (patch) | |
tree | 88b185e281019d6d83444b591751edb41b5fd63a /dev-python/pslab | |
parent | dev-python/pslab-python: Prepare for rename (diff) | |
download | gentoo-fe5c02996cb405ae60422a578f2d5e975fef1a2a.tar.gz gentoo-fe5c02996cb405ae60422a578f2d5e975fef1a2a.tar.bz2 gentoo-fe5c02996cb405ae60422a578f2d5e975fef1a2a.zip |
Rename dev-python/{pslab-python → pslab}
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/pslab')
-rw-r--r-- | dev-python/pslab/Manifest | 1 | ||||
-rw-r--r-- | dev-python/pslab/files/pslab-2.5.0-ad9833_sys_version.patch | 11 | ||||
-rw-r--r-- | dev-python/pslab/metadata.xml | 12 | ||||
-rw-r--r-- | dev-python/pslab/pslab-2.5.0.ebuild | 49 |
4 files changed, 73 insertions, 0 deletions
diff --git a/dev-python/pslab/Manifest b/dev-python/pslab/Manifest new file mode 100644 index 000000000000..1b7fb58e68e3 --- /dev/null +++ b/dev-python/pslab/Manifest @@ -0,0 +1 @@ +DIST pslab-python-2.5.0.gh.tar.gz 353493 BLAKE2B 4eae07fec800dc357041578a75e48812848588e49e14b75425ee4b24c62b1116d0493055564188e33e4d934f4d572708c811ec9bb7fbf5d437befedfcad5da1a SHA512 e8e4f53dc8c1d6aa4385cdbdc8a82bac21d9de15643980fed42a2b16c10ff56e0836371368840c9207d6bd6f8d73900a344507b8bce8b197f0580373137c0f1f diff --git a/dev-python/pslab/files/pslab-2.5.0-ad9833_sys_version.patch b/dev-python/pslab/files/pslab-2.5.0-ad9833_sys_version.patch new file mode 100644 index 000000000000..b34182266c4a --- /dev/null +++ b/dev-python/pslab/files/pslab-2.5.0-ad9833_sys_version.patch @@ -0,0 +1,11 @@ +--- a/pslab/external/AD9833.py ++++ b/pslab/external/AD9833.py +@@ -2,7 +2,7 @@ + + + class AD9833: +- if sys.version.major == 3: ++ if sys.version_info.major == 3: + DDS_MAX_FREQ = 0xFFFFFFF - 1 # 24 bit resolution + else: + DDS_MAX_FREQ = eval("0xFFFFFFFL-1") # 24 bit resolution diff --git a/dev-python/pslab/metadata.xml b/dev-python/pslab/metadata.xml new file mode 100644 index 000000000000..8c2314eeca2d --- /dev/null +++ b/dev-python/pslab/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>marecki@gentoo.org</email> + <name>Marek Szuba</name> + </maintainer> + <upstream> + <remote-id type="github">fossasia/pslab-python</remote-id> + <remote-id type="pypi">pslab</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-python/pslab/pslab-2.5.0.ebuild b/dev-python/pslab/pslab-2.5.0.ebuild new file mode 100644 index 000000000000..d5f734959f53 --- /dev/null +++ b/dev-python/pslab/pslab-2.5.0.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +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/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 +) + +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 |