git: 3907ae4854ac - main - net-mgmt/py-netutils: Update to 1.5.0

From: Kai Knoblich <kai_at_FreeBSD.org>
Date: Thu, 03 Aug 2023 11:12:02 UTC
The branch main has been updated by kai:

URL: https://cgit.FreeBSD.org/ports/commit/?id=3907ae4854acac74280d1b0109d325123dec1a9f

commit 3907ae4854acac74280d1b0109d325123dec1a9f
Author:     Kai Knoblich <kai@FreeBSD.org>
AuthorDate: 2023-08-03 11:07:48 +0000
Commit:     Kai Knoblich <kai@FreeBSD.org>
CommitDate: 2023-08-03 11:07:48 +0000

    net-mgmt/py-netutils: Update to 1.5.0
    
    * Switch to PEP517 build framework.
    
    Changelog:
    
    https://github.com/networktocode/netutils/releases/tag/v1.5.0
---
 net-mgmt/py-netutils/Makefile                   |  6 ++++--
 net-mgmt/py-netutils/distinfo                   |  6 +++---
 net-mgmt/py-netutils/files/patch-pyproject.toml | 14 ++++++++++++++
 3 files changed, 21 insertions(+), 5 deletions(-)

diff --git a/net-mgmt/py-netutils/Makefile b/net-mgmt/py-netutils/Makefile
index 569299bf9e31..bc2e6a929673 100644
--- a/net-mgmt/py-netutils/Makefile
+++ b/net-mgmt/py-netutils/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	netutils
-DISTVERSION=	1.4.1
+DISTVERSION=	1.5.0
 CATEGORIES=	net-mgmt python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -11,8 +11,10 @@ WWW=		https://github.com/networktocode/netutils
 LICENSE=	APACHE20
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}poetry-core>=1.0.0:devel/py-poetry-core@${PY_FLAVOR}
+
 USES=		python
-USE_PYTHON=	autoplist distutils
+USE_PYTHON=	autoplist pep517
 
 NO_ARCH=	yes
 
diff --git a/net-mgmt/py-netutils/distinfo b/net-mgmt/py-netutils/distinfo
index 6935a131dd3f..44d3afd59352 100644
--- a/net-mgmt/py-netutils/distinfo
+++ b/net-mgmt/py-netutils/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1677150903
-SHA256 (netutils-1.4.1.tar.gz) = 4f7501478d810bcd3c64edfe064fa8962a1572636f4fceee2538fc9d3616fbe2
-SIZE (netutils-1.4.1.tar.gz) = 446568
+TIMESTAMP = 1690888738
+SHA256 (netutils-1.5.0.tar.gz) = c0d3a8836a030eca456a2e9291d02be1326e6d7fe4e88cb63b1155512001bb14
+SIZE (netutils-1.5.0.tar.gz) = 458673
diff --git a/net-mgmt/py-netutils/files/patch-pyproject.toml b/net-mgmt/py-netutils/files/patch-pyproject.toml
new file mode 100644
index 000000000000..8cc826fcd351
--- /dev/null
+++ b/net-mgmt/py-netutils/files/patch-pyproject.toml
@@ -0,0 +1,14 @@
+Avoid installing LICENSE and README.md in the top-level directory of Python's
+site-lib directory.
+
+--- pyproject.toml.orig	2023-08-02 07:38:19 UTC
++++ pyproject.toml
+@@ -19,8 +19,6 @@ include = [
+     "Programming Language :: Python :: 3.11",
+ ]
+ include = [
+-    "LICENSE",
+-    "README.md",
+     "netutils/protocols.json"
+ ]
+