[gentoo-commits] repo/gentoo:master commit in: dev-python/hidapi/
commit: 2db85c741ea5653bf6087921e89fa9700a6833a9 Author: Sam James gentoo org> AuthorDate: Mon Dec 25 07:28:48 2023 + Commit: Sam James gentoo org> CommitDate: Mon Dec 25 07:28:48 2023 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2db85c74 dev-python/hidapi: drop 0.13.1 Bug: https://bugs.gentoo.org/898678 Signed-off-by: Sam James gentoo.org> dev-python/hidapi/Manifest | 1 - dev-python/hidapi/hidapi-0.13.1.ebuild | 29 - 2 files changed, 30 deletions(-) diff --git a/dev-python/hidapi/Manifest b/dev-python/hidapi/Manifest index a8ac2690b7c7..4413e92216a1 100644 --- a/dev-python/hidapi/Manifest +++ b/dev-python/hidapi/Manifest @@ -1,2 +1 @@ -DIST hidapi-0.13.1.tar.gz 130169 BLAKE2B 127e622e4b85880f1c20ccb819b806c66357d8cfa6c15d370c13a6a0a3838ac6acf0673c7edbf5309a91f55051b6177800328b8f897ff43cd1e0af1b511c52a6 SHA512 8e6a7a6bf47e24f6f637cc036dc306518d893fc9fdf94639f626725e8f8767d7e85496d8db5f9f394d648ef5af4dd5ead0f0a6d452a019b5d9fa0716371febed DIST hidapi-0.14.0.tar.gz 143052 BLAKE2B ebf3fb9608b1f18d9fa24aaa4bca7b2e5ccbdb6a33da41456f614d0cace556231bb8eb17c21e2a79a5292970cb37f7a46fb6cd1e82efb0a646cf8a942d2a SHA512 228fac22621e36a3108cefd418937a7ed0153e334e1e947aad341a753d614877cd3f7add90d78037ebe9c7b3f6cbc42973a8e680188da14928311d317b17 diff --git a/dev-python/hidapi/hidapi-0.13.1.ebuild b/dev-python/hidapi/hidapi-0.13.1.ebuild deleted file mode 100644 index c1a9212c3318.. --- a/dev-python/hidapi/hidapi-0.13.1.ebuild +++ /dev/null @@ -1,29 +0,0 @@ -# Copyright 2022-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 -PYTHON_COMPAT=( python3_{9..11} ) -DISTUTILS_USE_PEP517=setuptools -inherit distutils-r1 pypi - -DESCRIPTION="A Cython interface to HIDAPI library" -HOMEPAGE="https://github.com/trezor/cython-hidapi; - -LICENSE="|| ( BSD GPL-3 )" -SLOT="0" -KEYWORDS="~amd64 ~arm ~arm64 ~x86" - -DEPEND=">=dev-libs/hidapi-$(ver_cut 1-3)" -RDEPEND="${DEPEND}" -#
[gentoo-commits] repo/gentoo:master commit in: dev-python/hidapi/, dev-python/hidapi/files/
commit: af2e6e7b3048cdc16aa03d015cda02595cd820f0 Author: Sam James gentoo org> AuthorDate: Tue Oct 10 07:05:17 2023 + Commit: Sam James gentoo org> CommitDate: Tue Oct 10 07:05:17 2023 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=af2e6e7b dev-python/hidapi: add 0.14.0 Closes: https://bugs.gentoo.org/898678 Closes: https://bugs.gentoo.org/908498 Signed-off-by: Sam James gentoo.org> dev-python/hidapi/Manifest | 1 + .../hidapi/files/hidapi-0.14.0-cython3.patch | 134 + dev-python/hidapi/hidapi-0.14.0.ebuild | 34 ++ 3 files changed, 169 insertions(+) diff --git a/dev-python/hidapi/Manifest b/dev-python/hidapi/Manifest index 6eb2b30285c8..a8ac2690b7c7 100644 --- a/dev-python/hidapi/Manifest +++ b/dev-python/hidapi/Manifest @@ -1 +1,2 @@ DIST hidapi-0.13.1.tar.gz 130169 BLAKE2B 127e622e4b85880f1c20ccb819b806c66357d8cfa6c15d370c13a6a0a3838ac6acf0673c7edbf5309a91f55051b6177800328b8f897ff43cd1e0af1b511c52a6 SHA512 8e6a7a6bf47e24f6f637cc036dc306518d893fc9fdf94639f626725e8f8767d7e85496d8db5f9f394d648ef5af4dd5ead0f0a6d452a019b5d9fa0716371febed +DIST hidapi-0.14.0.tar.gz 143052 BLAKE2B ebf3fb9608b1f18d9fa24aaa4bca7b2e5ccbdb6a33da41456f614d0cace556231bb8eb17c21e2a79a5292970cb37f7a46fb6cd1e82efb0a646cf8a942d2a SHA512 228fac22621e36a3108cefd418937a7ed0153e334e1e947aad341a753d614877cd3f7add90d78037ebe9c7b3f6cbc42973a8e680188da14928311d317b17 diff --git a/dev-python/hidapi/files/hidapi-0.14.0-cython3.patch b/dev-python/hidapi/files/hidapi-0.14.0-cython3.patch new file mode 100644 index ..681f9a427934 --- /dev/null +++ b/dev-python/hidapi/files/hidapi-0.14.0-cython3.patch @@ -0,0 +1,134 @@ +https://bugs.gentoo.org/898678 + +1. https://github.com/trezor/cython-hidapi/commit/749da6931f57c4c30596de678125648ccfd6e1cd +2. https://github.com/trezor/cython-hidapi/pull/159 + +From 749da6931f57c4c30596de678125648ccfd6e1cd Mon Sep 17 00:00:00 2001 +From: Pavol Rusnak +Date: Thu, 20 Jul 2023 13:09:19 +0200 +Subject: [PATCH] Require Cython<3 instead of Cython + +--- + setup.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/setup.py b/setup.py +index 7e3eb29c..4c311ba4 100755 +--- a/setup.py b/setup.py +@@ -136,6 +136,6 @@ def find_version(): + "Programming Language :: Python :: 3.9", + ], + ext_modules=modules, +-setup_requires=["Cython"], ++setup_requires=["Cython<3"], + install_requires=["setuptools>=19.0"], + ) + +From 7dad82b125fdca5df83c00fc711151c35aaa5125 Mon Sep 17 00:00:00 2001 +From: Shawn Hoffman +Date: Mon, 11 Sep 2023 17:27:52 -0700 +Subject: [PATCH 1/4] use pyxdep file to locate chid.pxd + +--- + hid.pyxdep | 1 + + setup.py | 4 ++-- + 2 files changed, 3 insertions(+), 2 deletions(-) + create mode 100644 hid.pyxdep + +diff --git a/hid.pyxdep b/hid.pyxdep +new file mode 100644 +index ..7480bc82 +--- /dev/null b/hid.pyxdep +@@ -0,0 +1 @@ ++chid.pxd +diff --git a/setup.py b/setup.py +index 4c311ba4..73066b06 100755 +--- a/setup.py b/setup.py +@@ -9,7 +9,7 @@ + hidapi_include = os.path.join(hidapi_topdir, "hidapi") + system_hidapi = 0 + libs = [] +-src = ["hid.pyx", "chid.pxd"] ++src = ["hid.pyx"] + + + def hidapi_src(platform): +@@ -42,7 +42,7 @@ def hidapi_src(platform): + ) + ) + libs = ["udev", "rt"] +-src = ["hidraw.pyx", "chid.pxd"] ++src = ["hidraw.pyx"] + if system_hidapi == 1: + libs.append("hidapi-hidraw") + else: + +From 4c78f61c7815d1005023d69c42ae777cfee021c1 Mon Sep 17 00:00:00 2001 +From: Shawn Hoffman +Date: Mon, 11 Sep 2023 17:28:33 -0700 +Subject: [PATCH 2/4] specify language_level for cython + +--- + setup.py | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/setup.py b/setup.py +index 73066b06..6a3e0af0 100755 +--- a/setup.py b/setup.py +@@ -1,5 +1,6 @@ + #!/usr/bin/python + from setuptools import setup, Extension ++from Cython.Build import cythonize + import os + import sys + import subprocess +@@ -135,7 +136,7 @@ def find_version(): + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", + ], +-ext_modules=modules, ++ext_modules=cythonize(modules, language_level=3), + setup_requires=["Cython<3"], + install_requires=["setuptools>=19.0"], + ) + +From d73b4cc6706d4220d28df866504e989ab616616a Mon Sep 17 00:00:00 2001 +From: Shawn Hoffman +Date: Mon, 11 Sep 2023 17:31:37 -0700 +Subject: [PATCH 3/4] use pyproject.toml allow using recent cython the + expectation is that one would use the `build` tool instead of invoking + setup.py. + +--- + pyproject.toml | 3 +++ + setup.py | 1 - + 3 files changed, 3 insertions(+), 2 deletions(-) + create mode 100644 pyproject.toml + delete mode 100644 requirements.txt + +diff --git a/pyproject.toml b/pyproject.toml +new file mode 100644 +index ..c07b1d35 +--- /dev/null b/pyproject.toml
[gentoo-commits] repo/gentoo:master commit in: dev-python/hidapi/
commit: fe72a90dbf4cf12fd8c6ff52321a62d125224f90 Author: Sam James gentoo org> AuthorDate: Mon Sep 18 09:49:14 2023 + Commit: Sam James gentoo org> CommitDate: Mon Sep 18 09:49:14 2023 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fe72a90d dev-python/hidapi: retire sultan Signed-off-by: Sam James gentoo.org> dev-python/hidapi/metadata.xml | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/dev-python/hidapi/metadata.xml b/dev-python/hidapi/metadata.xml index 59255f6b605d..6da494f40c3b 100644 --- a/dev-python/hidapi/metadata.xml +++ b/dev-python/hidapi/metadata.xml @@ -1,10 +1,7 @@ https://www.gentoo.org/dtd/metadata.dtd;> - -sul...@gentoo.org -Stephan Hartmann - + trezor/cython-hidapi hidapi
[gentoo-commits] repo/gentoo:master commit in: dev-python/hidapi/
commit: 2e38d3394dc5acc576394fe9f0de8eaf38d7e3ab Author: Sam James gentoo org> AuthorDate: Sat Sep 9 02:30:42 2023 + Commit: Sam James gentoo org> CommitDate: Sat Sep 9 02:30:42 2023 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2e38d339 dev-python/hidapi: depend on https://bugs.gentoo.org/898678 Signed-off-by: Sam James gentoo.org> dev-python/hidapi/hidapi-0.13.1.ebuild | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dev-python/hidapi/hidapi-0.13.1.ebuild b/dev-python/hidapi/hidapi-0.13.1.ebuild index 6a65cf05265a..c1a9212c3318 100644 --- a/dev-python/hidapi/hidapi-0.13.1.ebuild +++ b/dev-python/hidapi/hidapi-0.13.1.ebuild @@ -15,7 +15,8 @@ KEYWORDS="~amd64 ~arm ~arm64 ~x86" DEPEND=">=dev-libs/hidapi-$(ver_cut 1-3)" RDEPEND="${DEPEND}" -BDEPEND="dev-python/cython[${PYTHON_USEDEP}]" +#
[gentoo-commits] repo/gentoo:master commit in: dev-python/hidapi/
commit: 8068373892ad0a40596c5c103a49d8dde52fb690 Author: Michał Górny gentoo org> AuthorDate: Wed Mar 15 17:45:48 2023 + Commit: Michał Górny gentoo org> CommitDate: Thu Mar 16 03:48:05 2023 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=80683738 dev-python/hidapi: Use pypi.eclass Signed-off-by: Michał Górny gentoo.org> dev-python/hidapi/hidapi-0.13.1.ebuild | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/dev-python/hidapi/hidapi-0.13.1.ebuild b/dev-python/hidapi/hidapi-0.13.1.ebuild index fe4ec8ca7aa0..6a65cf05265a 100644 --- a/dev-python/hidapi/hidapi-0.13.1.ebuild +++ b/dev-python/hidapi/hidapi-0.13.1.ebuild @@ -4,12 +4,10 @@ EAPI=8 PYTHON_COMPAT=( python3_{9..11} ) DISTUTILS_USE_PEP517=setuptools -inherit distutils-r1 +inherit distutils-r1 pypi DESCRIPTION="A Cython interface to HIDAPI library" HOMEPAGE="https://github.com/trezor/cython-hidapi; -MY_PV=$(ver_rs 3 .post) -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${PN}-${MY_PV}.tar.gz" LICENSE="|| ( BSD GPL-3 )" SLOT="0" @@ -21,8 +19,6 @@ BDEPEND="dev-python/cython[${PYTHON_USEDEP}]" distutils_enable_tests pytest -S="${WORKDIR}/${PN}-${MY_PV}" - python_configure_all() { DISTUTILS_ARGS=( --with-system-hidapi ) }
[gentoo-commits] repo/gentoo:master commit in: dev-python/hidapi/
commit: 79a6a1e3b984e2dab75d1e7fec3ff812edec4b3d Author: Stephan Hartmann gentoo org> AuthorDate: Thu Jan 19 18:55:40 2023 + Commit: Stephan Hartmann gentoo org> CommitDate: Thu Jan 19 19:26:01 2023 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=79a6a1e3 dev-python/hidapi: add 0.13.1 Closes: https://bugs.gentoo.org/891171 Signed-off-by: Stephan Hartmann gentoo.org> dev-python/hidapi/Manifest | 1 + dev-python/hidapi/hidapi-0.13.1.ebuild | 32 2 files changed, 33 insertions(+) diff --git a/dev-python/hidapi/Manifest b/dev-python/hidapi/Manifest index 03f65d02f5e7..6b9ab75aecb9 100644 --- a/dev-python/hidapi/Manifest +++ b/dev-python/hidapi/Manifest @@ -1 +1,2 @@ DIST hidapi-0.12.0.post2.tar.gz 125008 BLAKE2B 6792d8a4bbd80da19b3dd1fde47061e3a0f00678059e36598da4a34142cbfe1e732854c2a372a869891be79e1131a7cef138913556159574f10b8b08439bfefe SHA512 dee9f1f07e4f297b935c8e3fbe798471f449f6a101d68131db23d24ccfb5ce445cc3b0e7305606d3630443a817aa75a27093109078735168a59d21614606f0a0 +DIST hidapi-0.13.1.tar.gz 130169 BLAKE2B 127e622e4b85880f1c20ccb819b806c66357d8cfa6c15d370c13a6a0a3838ac6acf0673c7edbf5309a91f55051b6177800328b8f897ff43cd1e0af1b511c52a6 SHA512 8e6a7a6bf47e24f6f637cc036dc306518d893fc9fdf94639f626725e8f8767d7e85496d8db5f9f394d648ef5af4dd5ead0f0a6d452a019b5d9fa0716371febed diff --git a/dev-python/hidapi/hidapi-0.13.1.ebuild b/dev-python/hidapi/hidapi-0.13.1.ebuild new file mode 100644 index ..fe4ec8ca7aa0 --- /dev/null +++ b/dev-python/hidapi/hidapi-0.13.1.ebuild @@ -0,0 +1,32 @@ +# Copyright 2022-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +PYTHON_COMPAT=( python3_{9..11} ) +DISTUTILS_USE_PEP517=setuptools +inherit distutils-r1 + +DESCRIPTION="A Cython interface to HIDAPI library" +HOMEPAGE="https://github.com/trezor/cython-hidapi; +MY_PV=$(ver_rs 3 .post) +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${PN}-${MY_PV}.tar.gz" + +LICENSE="|| ( BSD GPL-3 )" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~x86" + +DEPEND=">=dev-libs/hidapi-$(ver_cut 1-3)" +RDEPEND="${DEPEND}" +BDEPEND="dev-python/cython[${PYTHON_USEDEP}]" + +distutils_enable_tests pytest + +S="${WORKDIR}/${PN}-${MY_PV}" + +python_configure_all() { + DISTUTILS_ARGS=( --with-system-hidapi ) +} + +python_test() { + epytest tests.py +}
[gentoo-commits] repo/gentoo:master commit in: dev-python/hidapi/
commit: 1bd7e7c5b502ea259191c0f613cdbe910387615f Author: Stephan Hartmann gentoo org> AuthorDate: Tue Aug 30 18:22:15 2022 + Commit: Stephan Hartmann gentoo org> CommitDate: Tue Aug 30 18:22:39 2022 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1bd7e7c5 dev-python/hidapi: new package, add 0.12.0.2, moved from ::guru Signed-off-by: Stephan Hartmann gentoo.org> dev-python/hidapi/Manifest | 1 + dev-python/hidapi/hidapi-0.12.0.2.ebuild | 32 dev-python/hidapi/metadata.xml | 12 3 files changed, 45 insertions(+) diff --git a/dev-python/hidapi/Manifest b/dev-python/hidapi/Manifest new file mode 100644 index ..03f65d02f5e7 --- /dev/null +++ b/dev-python/hidapi/Manifest @@ -0,0 +1 @@ +DIST hidapi-0.12.0.post2.tar.gz 125008 BLAKE2B 6792d8a4bbd80da19b3dd1fde47061e3a0f00678059e36598da4a34142cbfe1e732854c2a372a869891be79e1131a7cef138913556159574f10b8b08439bfefe SHA512 dee9f1f07e4f297b935c8e3fbe798471f449f6a101d68131db23d24ccfb5ce445cc3b0e7305606d3630443a817aa75a27093109078735168a59d21614606f0a0 diff --git a/dev-python/hidapi/hidapi-0.12.0.2.ebuild b/dev-python/hidapi/hidapi-0.12.0.2.ebuild new file mode 100644 index ..5aa029943585 --- /dev/null +++ b/dev-python/hidapi/hidapi-0.12.0.2.ebuild @@ -0,0 +1,32 @@ +# Copyright 2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +PYTHON_COMPAT=( python3_{8..11} ) + +inherit distutils-r1 + +DESCRIPTION="A Cython interface to HIDAPI library" +HOMEPAGE="https://github.com/trezor/cython-hidapi; +MY_PV=$(ver_rs 3 .post) +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${PN}-${MY_PV}.tar.gz" + +LICENSE="|| ( BSD GPL-3 )" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~x86" + +DEPEND=">=dev-libs/hidapi-$(ver_cut 1-3)" +RDEPEND="${DEPEND}" +BDEPEND="dev-python/cython[${PYTHON_USEDEP}]" + +distutils_enable_tests pytest + +S="${WORKDIR}/${PN}-${MY_PV}" + +python_configure_all() { + DISTUTILS_ARGS=( --with-system-hidapi ) +} + +python_test() { + epytest tests.py +} diff --git a/dev-python/hidapi/metadata.xml b/dev-python/hidapi/metadata.xml new file mode 100644 index ..59255f6b605d --- /dev/null +++ b/dev-python/hidapi/metadata.xml @@ -0,0 +1,12 @@ + +https://www.gentoo.org/dtd/metadata.dtd;> + + +sul...@gentoo.org +Stephan Hartmann + + +trezor/cython-hidapi +hidapi + +