From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Tue, 02 May 2023 09:07:31 +0200 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1ptk6m-0026zZ-3g for lore@lore.pengutronix.de; Tue, 02 May 2023 09:07:31 +0200 Received: from localhost ([127.0.0.1] helo=metis.ext.pengutronix.de) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1ptk6j-00065t-Q1; Tue, 02 May 2023 09:07:29 +0200 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ptk5U-0002Wa-Cq; Tue, 02 May 2023 09:06:12 +0200 Received: from [2a0a:edc0:0:1101:1d::54] (helo=dude05.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.94.2) (envelope-from ) id 1ptk5T-000WpN-UL; Tue, 02 May 2023 09:06:11 +0200 Received: from mol by dude05.red.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1ptk5T-001KOe-0a; Tue, 02 May 2023 09:06:11 +0200 From: Michael Olbrich To: ptxdist@pengutronix.de Date: Tue, 2 May 2023 09:06:11 +0200 Message-Id: <20230502070611.316725-1-m.olbrich@pengutronix.de> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230428085355.167793-1-jlu@pengutronix.de> References: <20230428085355.167793-1-jlu@pengutronix.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [ptxdist] [APPLIED] python3-pyusb: new package X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Cc: Jan Luebbe Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false Thanks, applied as 3e819572585da675820332fb6e11a18601bfd754. Michael [sent from post-receive hook] On Tue, 02 May 2023 09:06:10 +0200, Jan Luebbe wrote: > Signed-off-by: Jan Luebbe > Message-Id: <20230428085355.167793-1-jlu@pengutronix.de> > Signed-off-by: Michael Olbrich > > diff --git a/rules/python3-pyusb.in b/rules/python3-pyusb.in > new file mode 100644 > index 000000000000..c20b081f3494 > --- /dev/null > +++ b/rules/python3-pyusb.in > @@ -0,0 +1,10 @@ > +## SECTION=python3 > + > +config PYTHON3_PYUSB > + tristate > + select HOST_PYTHON3_SETUPTOOLS_SCM > + select PYTHON3 > + select LIBUSB > + prompt "pyusb" > + help > + Easy USB access for Python > diff --git a/rules/python3-pyusb.make b/rules/python3-pyusb.make > new file mode 100644 > index 000000000000..a717e7883e74 > --- /dev/null > +++ b/rules/python3-pyusb.make > @@ -0,0 +1,54 @@ > +# -*-makefile-*- > +# > +# Copyright (C) 2023 by Jan Luebbe > +# > +# For further information about the PTXdist project and license conditions > +# see the README file. > +# > + > +# > +# We provide this package > +# > +PACKAGES-$(PTXCONF_PYTHON3_PYUSB) += python3-pyusb > + > +# > +# Paths and names > +# > +PYTHON3_PYUSB_VERSION := 1.2.1 > +PYTHON3_PYUSB_MD5 := 880008dff32dac8f58076b4e534492d9 > +PYTHON3_PYUSB := pyusb-$(PYTHON3_PYUSB_VERSION) > +PYTHON3_PYUSB_SUFFIX := tar.gz > +PYTHON3_PYUSB_URL := $(call ptx/mirror-pypi, pyusb, $(PYTHON3_PYUSB).$(PYTHON3_PYUSB_SUFFIX)) > +PYTHON3_PYUSB_SOURCE := $(SRCDIR)/$(PYTHON3_PYUSB).$(PYTHON3_PYUSB_SUFFIX) > +PYTHON3_PYUSB_DIR := $(BUILDDIR)/$(PYTHON3_PYUSB) > +PYTHON3_PYUSB_LICENSE := BSD-3-Clause > +PYTHON3_PYUSB_LICENSE_FILES := \ > + file://LICENSE;md5=e64a29fcd3c3dd356a24e235dfcb3905 > + > +# ---------------------------------------------------------------------------- > +# Prepare > +# ---------------------------------------------------------------------------- > + > +PYTHON3_PYUSB_CONF_TOOL := python3 > + > +# ---------------------------------------------------------------------------- > +# Target-Install > +# ---------------------------------------------------------------------------- > + > +$(STATEDIR)/python3-pyusb.targetinstall: > + @$(call targetinfo) > + > + @$(call install_init, python3-pyusb) > + @$(call install_fixup, python3-pyusb,PRIORITY,optional) > + @$(call install_fixup, python3-pyusb,SECTION,base) > + @$(call install_fixup, python3-pyusb,AUTHOR,"Jan Luebbe ") > + @$(call install_fixup, python3-pyusb,DESCRIPTION,missing) > + > + @$(call install_glob, python3-pyusb, 0, 0, -, \ > + $(PYTHON3_SITEPACKAGES),, *.py) > + > + @$(call install_finish, python3-pyusb) > + > + @$(call touch) > + > +# vim: syntax=make