git: 7f2d71c080f0 - main - net/py-python-ipware: New port

From: Michael Gmelin <grembo_at_FreeBSD.org>
Date: Sun, 18 Feb 2024 11:59:51 UTC
The branch main has been updated by grembo:

URL: https://cgit.FreeBSD.org/ports/commit/?id=7f2d71c080f020612fddfa60808e79110c85049f

commit 7f2d71c080f020612fddfa60808e79110c85049f
Author:     Michael Gmelin <grembo@FreeBSD.org>
AuthorDate: 2024-02-12 13:39:50 +0000
Commit:     Michael Gmelin <grembo@FreeBSD.org>
CommitDate: 2024-02-18 11:59:34 +0000

    net/py-python-ipware: New port
    
    Python package to retrieve the IP address of a user
---
 net/Makefile                   |  1 +
 net/py-python-ipware/Makefile  | 22 ++++++++++++++++++++++
 net/py-python-ipware/distinfo  |  3 +++
 net/py-python-ipware/pkg-descr |  3 +++
 4 files changed, 29 insertions(+)

diff --git a/net/Makefile b/net/Makefile
index 32cb5c55fbd0..0284875ef2a8 100644
--- a/net/Makefile
+++ b/net/Makefile
@@ -1117,6 +1117,7 @@
     SUBDIR += py-python-designateclient
     SUBDIR += py-python-glanceclient
     SUBDIR += py-python-heatclient
+    SUBDIR += py-python-ipware
     SUBDIR += py-python-keystoneclient
     SUBDIR += py-python-ldap
     SUBDIR += py-python-neutronclient
diff --git a/net/py-python-ipware/Makefile b/net/py-python-ipware/Makefile
new file mode 100644
index 000000000000..afdfa3d900ae
--- /dev/null
+++ b/net/py-python-ipware/Makefile
@@ -0,0 +1,22 @@
+PORTNAME=	python-ipware
+PORTVERSION=	2.0.1
+CATEGORIES=	net python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	grembo@FreeBSD.org
+COMMENT=	Python package to retrieve the IP address of a user
+WWW=		https://github.com/un33k/python-ipware
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	autoplist pep517
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/net/py-python-ipware/distinfo b/net/py-python-ipware/distinfo
new file mode 100644
index 000000000000..75444b1f4cb2
--- /dev/null
+++ b/net/py-python-ipware/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1707594536
+SHA256 (python-ipware-2.0.1.tar.gz) = 9ba4805152ebb85ad5b53797185cd1ce6231e1db60155834f326c8cd61e8af34
+SIZE (python-ipware-2.0.1.tar.gz) = 15367
diff --git a/net/py-python-ipware/pkg-descr b/net/py-python-ipware/pkg-descr
new file mode 100644
index 000000000000..1d010cbffb6e
--- /dev/null
+++ b/net/py-python-ipware/pkg-descr
@@ -0,0 +1,3 @@
+A python package for server applications to retrieve client's IP address.
+
+Best attempt to get client's IP address while keeping it DRY.