aboutsummaryrefslogtreecommitdiffstats
path: root/www/py-user-agents
diff options
context:
space:
mode:
authorJan T <jan@jantuomi.fi>2026-07-23 19:24:22 +0300
committerJan Tuomi <jan@jantuomi.fi>2026-07-23 19:26:00 +0300
commitd57b5cd7830a5b4ed1437b1b648dca62a9b6eea3 (patch)
tree85c5e69424dd2fe4c07be9dbb1b4267ee1503c3d /www/py-user-agents
*/*: initial commit
Diffstat (limited to 'www/py-user-agents')
-rw-r--r--www/py-user-agents/Makefile21
-rw-r--r--www/py-user-agents/distinfo3
-rw-r--r--www/py-user-agents/pkg-descr2
3 files changed, 26 insertions, 0 deletions
diff --git a/www/py-user-agents/Makefile b/www/py-user-agents/Makefile
new file mode 100644
index 0000000..6b6f588
--- /dev/null
+++ b/www/py-user-agents/Makefile
@@ -0,0 +1,21 @@
+PORTNAME= user-agents
+PORTVERSION= 2.2.0
+CATEGORIES= www python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= jan@jantuomi.fi
+COMMENT= Library to identify devices by parsing user agent strings
+WWW= https://github.com/selwin/python-user-agents
+
+LICENSE= MIT
+
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>0:devel/py-setuptools@${PY_FLAVOR}
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}ua-parser>=0.10.0:www/py-ua-parser@${PY_FLAVOR}
+
+USES= python:3.11+
+USE_PYTHON= distutils autoplist
+
+NO_ARCH= yes
+
+.include <bsd.port.mk>
diff --git a/www/py-user-agents/distinfo b/www/py-user-agents/distinfo
new file mode 100644
index 0000000..ccd92bf
--- /dev/null
+++ b/www/py-user-agents/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1784811453
+SHA256 (user-agents-2.2.0.tar.gz) = d36d25178db65308d1458c5fa4ab39c9b2619377010130329f3955e7626ead26
+SIZE (user-agents-2.2.0.tar.gz) = 9525
diff --git a/www/py-user-agents/pkg-descr b/www/py-user-agents/pkg-descr
new file mode 100644
index 0000000..edfdf9b
--- /dev/null
+++ b/www/py-user-agents/pkg-descr
@@ -0,0 +1,2 @@
+A library to identify devices (phones, tablets) and their capabilities
+by parsing browser user agent strings.