summaryrefslogtreecommitdiff
path: root/dev-python/pyusb
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/pyusb')
-rw-r--r--dev-python/pyusb/Manifest2
-rw-r--r--dev-python/pyusb/pyusb-1.2.0.ebuild26
2 files changed, 28 insertions, 0 deletions
diff --git a/dev-python/pyusb/Manifest b/dev-python/pyusb/Manifest
index 912d0b8ec163..3da964ef1f5a 100644
--- a/dev-python/pyusb/Manifest
+++ b/dev-python/pyusb/Manifest
@@ -1,3 +1,5 @@
DIST pyusb-1.1.1.tar.gz 74746 BLAKE2B 795acafae3193e1a415baeb634554c8fdec3f4baa45a61a3eac9e1af4a84634cc540d421b7d8ad20142912fbef6ba53684e2e5b008e48f3e89406a493918ab20 SHA512 19aa82dcb9421d536063a975414855d1474f44b33dc4039e9a001be795061dbd60ed576acb605ae6bab7a0fe10834e5507408757546c7edcd50b43687a65a287
+DIST pyusb-1.2.0.tar.gz 75557 BLAKE2B 3a2d066d4069a8662c981ab1f01237d7c0bc18be82afb96a79cf861b04e2e389c5d5f6be96bf54337ef0b2ad8043d047554caed83987328d4e453a3748d13bc6 SHA512 3aa6314bd06467cf22fe299d414ffbdea773c8784dccfe53e7d54d238285bc389ba35317a993b38d2b2027c71a990edcf17016a060b8e627fe97e9cfcc99ce7d
EBUILD pyusb-1.1.1.ebuild 685 BLAKE2B aa089665e9e419582529ac05ec110843b081a8250fc789843a2aa5e63cc44e8434299dde0db61aba578d26cd9767bd1faa232d0a189643d0920535a31d171030 SHA512 d617a404d667a5506726a440cc251072374ef56ea5e3e33a710e4f5e8b1d8099d0bd68a946249862700ef589d1fc10f112295926a75b6dad3c5c425eb3200597
+EBUILD pyusb-1.2.0.ebuild 653 BLAKE2B 9f78d406a03a9bca19d4267d9d443d3d83fafa5bbc66d600ae854a95f5f1df7bdc7c0c791de13569e2e2944a7293eb01269b82686715be7d24edcf3e6cffa4d1 SHA512 cd76b832a07c19ee02fb7bc30688cf73c9c3150ebeb1beb60331eb990b14897167c51fcec25ffdec73e65c6859d1c65e8687e695cfdf39638503c11885262012
MISC metadata.xml 359 BLAKE2B 44a04e5fad69cdf343bb324f0367a1b52ce7443d4ef4c6bcd1e7742ac0cb9c6eeb8afc5b250d126c2bf4472c9fca2cce7f9a12a7354372bba8351d0489972e09 SHA512 ac428041984c13af0492c228514fcfabb00d98645b97ff78347c4fee2813df292f52ec9c37dd00392eff6c306a18513bec6d4c883cede2ff31f18c2973bff494
diff --git a/dev-python/pyusb/pyusb-1.2.0.ebuild b/dev-python/pyusb/pyusb-1.2.0.ebuild
new file mode 100644
index 000000000000..24e01cf2f163
--- /dev/null
+++ b/dev-python/pyusb/pyusb-1.2.0.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{8..10} )
+inherit distutils-r1
+
+DESCRIPTION="USB support for Python"
+HOMEPAGE="https://pyusb.github.io/pyusb/ https://pypi.org/project/pyusb/"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~x86"
+
+### This version is compatible with both 0.X and 1.X versions of libusb
+DEPEND="virtual/libusb:="
+RDEPEND="${DEPEND}"
+
+DOCS=( README.rst docs/tutorial.rst )
+
+python_test() {
+ cd tests || die
+ "${EPYTHON}" testall.py || die "Tests failed with ${EPYTHON}"
+}