git: 924c01e73548 - main - devel/py-pyusb: update to 1.2.1

From: Max Brazhnikov <makc_at_FreeBSD.org>
Date: Mon, 20 Mar 2023 11:07:03 UTC
The branch main has been updated by makc:

URL: https://cgit.FreeBSD.org/ports/commit/?id=924c01e735489130daf0884c07ad5b8774bb7fff

commit 924c01e735489130daf0884c07ad5b8774bb7fff
Author:     Max Brazhnikov <makc@FreeBSD.org>
AuthorDate: 2023-03-20 11:05:50 +0000
Commit:     Max Brazhnikov <makc@FreeBSD.org>
CommitDate: 2023-03-20 11:05:50 +0000

    devel/py-pyusb: update to 1.2.1
    
    Release notes: https://github.com/pyusb/pyusb/releases/tag/v1.1.1
                   https://github.com/pyusb/pyusb/releases/tag/v1.2.0
                   https://github.com/pyusb/pyusb/releases/tag/v1.2.1
    
    PR:             269615
    Approved by:    maintainer timeout (four weeks)
---
 devel/py-pyusb/Makefile | 5 ++++-
 devel/py-pyusb/distinfo | 6 +++---
 2 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/devel/py-pyusb/Makefile b/devel/py-pyusb/Makefile
index 006ac69c8fdc..a5654d12b4d5 100644
--- a/devel/py-pyusb/Makefile
+++ b/devel/py-pyusb/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	pyusb
-PORTVERSION=	1.0.2
+PORTVERSION=	1.2.1
 DISTVERSIONPREFIX=	v
 CATEGORIES=	devel python
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -10,11 +10,14 @@ WWW=		https://pyusb.github.io/pyusb/
 
 LICENSE=	BSD3CLAUSE
 
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools_scm>0:devel/py-setuptools_scm@${PY_FLAVOR}
+
 USES=		python:3.6+
 USE_PYTHON=	autoplist concurrent distutils
 
 USE_GITHUB=	yes
 
+MAKE_ENV=	SETUPTOOLS_SCM_PRETEND_VERSION=${PORTVERSION}
 NO_ARCH=	yes
 
 PORTDOCS=	*.rst
diff --git a/devel/py-pyusb/distinfo b/devel/py-pyusb/distinfo
index 4248f8157b61..f8a301010f7d 100644
--- a/devel/py-pyusb/distinfo
+++ b/devel/py-pyusb/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1593249363
-SHA256 (pyusb-pyusb-v1.0.2_GH0.tar.gz) = 49dfa601f28e9399df62004170cfb623197ad32d8399885b7f789775767b50c3
-SIZE (pyusb-pyusb-v1.0.2_GH0.tar.gz) = 68694
+TIMESTAMP = 1676458860
+SHA256 (pyusb-pyusb-v1.2.1_GH0.tar.gz) = ce8fb87380c1856fea9d787f6d7b85eea256f8db6b0e0f55d9d2bdc5af55b18b
+SIZE (pyusb-pyusb-v1.2.1_GH0.tar.gz) = 71549