mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-python/hidapi: new package, add 0.12.0.2, moved from ::guru
Signed-off-by: Stephan Hartmann <sultan@gentoo.org>
This commit is contained in:
1
dev-python/hidapi/Manifest
Normal file
1
dev-python/hidapi/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST hidapi-0.12.0.post2.tar.gz 125008 BLAKE2B 6792d8a4bbd80da19b3dd1fde47061e3a0f00678059e36598da4a34142cbfe1e732854c2a372a869891be79e1131a7cef138913556159574f10b8b08439bfefe SHA512 dee9f1f07e4f297b935c8e3fbe798471f449f6a101d68131db23d24ccfb5ce445cc3b0e7305606d3630443a817aa75a27093109078735168a59d21614606f0a0
|
||||
32
dev-python/hidapi/hidapi-0.12.0.2.ebuild
Normal file
32
dev-python/hidapi/hidapi-0.12.0.2.ebuild
Normal file
@@ -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
|
||||
}
|
||||
12
dev-python/hidapi/metadata.xml
Normal file
12
dev-python/hidapi/metadata.xml
Normal file
@@ -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>sultan@gentoo.org</email>
|
||||
<name>Stephan Hartmann</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">trezor/cython-hidapi</remote-id>
|
||||
<remote-id type="pypi">hidapi</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
Reference in New Issue
Block a user