From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 9EDCA15808B for ; Mon, 7 Feb 2022 16:17:56 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 97E9C2BC004; Mon, 7 Feb 2022 16:17:55 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id F20F82BC009 for ; Mon, 7 Feb 2022 16:17:54 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E611E342F85 for ; Mon, 7 Feb 2022 16:17:53 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 2C5F5287 for ; Mon, 7 Feb 2022 16:17:52 +0000 (UTC) From: "Marek Szuba" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Marek Szuba" Message-ID: <1644250665.55d57c2b0758ec4de962c345ccfcf9f4e783df5b.marecki@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pslab-python/, dev-python/pslab-python/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/pslab-python/Manifest dev-python/pslab-python/files/pslab-python-2.5.0-ad9833_sys_version.patch dev-python/pslab-python/pslab-python-2.5.0.ebuild X-VCS-Directories: dev-python/pslab-python/ dev-python/pslab-python/files/ X-VCS-Committer: marecki X-VCS-Committer-Name: Marek Szuba X-VCS-Revision: 55d57c2b0758ec4de962c345ccfcf9f4e783df5b X-VCS-Branch: master Date: Mon, 7 Feb 2022 16:17:52 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 299bfc88-7de4-4e2d-ba9f-139dfbf0d839 X-Archives-Hash: 7588a251a6d6579cea010918cb9af5b6 commit: 55d57c2b0758ec4de962c345ccfcf9f4e783df5b Author: Marek Szuba gentoo org> AuthorDate: Mon Feb 7 16:16:59 2022 +0000 Commit: Marek Szuba gentoo org> CommitDate: Mon Feb 7 16:17:45 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=55d57c2b dev-python/pslab-python: add 2.5.0 Signed-off-by: Marek Szuba gentoo.org> dev-python/pslab-python/Manifest | 1 + .../pslab-python-2.5.0-ad9833_sys_version.patch | 11 +++++++ dev-python/pslab-python/pslab-python-2.5.0.ebuild | 37 ++++++++++++++++++++++ 3 files changed, 49 insertions(+) diff --git a/dev-python/pslab-python/Manifest b/dev-python/pslab-python/Manifest index 607e84c133d8..4e36b7586ba2 100644 --- a/dev-python/pslab-python/Manifest +++ b/dev-python/pslab-python/Manifest @@ -1 +1,2 @@ DIST pslab-python-1.0.1.tar.gz 15460183 BLAKE2B 6837c40352eecdf563fa700617ee1712997fc0532483357d889d0fb03645732e0febf5ac83cdc8c766b7ec6d9ac9a436a313d0f44221c2ea69044be6f4c11fa6 SHA512 939f3649a0060a59a39ee97b57134075f8602b966fb3d14250c8ae96c340a4ab33e9fa8d7c5d8cf09ae9297b762c203e4a256bc29b9ff6006ce6ff254c468ad2 +DIST pslab-python-2.5.0.tar.gz 353493 BLAKE2B 4eae07fec800dc357041578a75e48812848588e49e14b75425ee4b24c62b1116d0493055564188e33e4d934f4d572708c811ec9bb7fbf5d437befedfcad5da1a SHA512 e8e4f53dc8c1d6aa4385cdbdc8a82bac21d9de15643980fed42a2b16c10ff56e0836371368840c9207d6bd6f8d73900a344507b8bce8b197f0580373137c0f1f diff --git a/dev-python/pslab-python/files/pslab-python-2.5.0-ad9833_sys_version.patch b/dev-python/pslab-python/files/pslab-python-2.5.0-ad9833_sys_version.patch new file mode 100644 index 000000000000..b34182266c4a --- /dev/null +++ b/dev-python/pslab-python/files/pslab-python-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-python/pslab-python-2.5.0.ebuild b/dev-python/pslab-python/pslab-python-2.5.0.ebuild new file mode 100644 index 000000000000..acc28d08330a --- /dev/null +++ b/dev-python/pslab-python/pslab-python-2.5.0.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8..10} ) +DISTUTILS_USE_PEP517=setuptools + +inherit distutils-r1 + +DESCRIPTION="Python library for communicating with Pocket Science Lab" +HOMEPAGE="https://pslab.io" +SRC_URI="https://github.com/fossasia/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +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 +) + +# Flaky in 2.5.0 +EPYTEST_DESELECT=( + tests/test_logic_analyzer.py::test_stop +) + +distutils_enable_tests pytest + +distutils_enable_sphinx docs dev-python/recommonmark