aboutsummaryrefslogtreecommitdiffstats
path: root/www/py-ua-parser
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-ua-parser
*/*: initial commit
Diffstat (limited to 'www/py-ua-parser')
-rw-r--r--www/py-ua-parser/Makefile20
-rw-r--r--www/py-ua-parser/distinfo3
-rw-r--r--www/py-ua-parser/pkg-descr2
3 files changed, 25 insertions, 0 deletions
diff --git a/www/py-ua-parser/Makefile b/www/py-ua-parser/Makefile
new file mode 100644
index 0000000..afb4b30
--- /dev/null
+++ b/www/py-ua-parser/Makefile
@@ -0,0 +1,20 @@
+PORTNAME= ua-parser
+PORTVERSION= 0.18.0
+CATEGORIES= www python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= jan@jantuomi.fi
+COMMENT= Python port of Browserscope's user agent parser
+WWW= https://github.com/ua-parser/uap-python
+
+LICENSE= APACHE20
+
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>0:devel/py-setuptools@${PY_FLAVOR}
+
+USES= python:3.11+
+USE_PYTHON= distutils autoplist
+
+NO_ARCH= yes
+
+.include <bsd.port.mk>
diff --git a/www/py-ua-parser/distinfo b/www/py-ua-parser/distinfo
new file mode 100644
index 0000000..8a4e598
--- /dev/null
+++ b/www/py-ua-parser/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1784811424
+SHA256 (ua-parser-0.18.0.tar.gz) = db51f1b59bfaa82ed9e2a1d99a54d3e4153dddf99ac1435d51828165422e624e
+SIZE (ua-parser-0.18.0.tar.gz) = 40659
diff --git a/www/py-ua-parser/pkg-descr b/www/py-ua-parser/pkg-descr
new file mode 100644
index 0000000..8df7d72
--- /dev/null
+++ b/www/py-ua-parser/pkg-descr
@@ -0,0 +1,2 @@
+Python port of Browserscope's user agent parser. This library parses
+HTTP User-Agent strings into their component parts (browser, OS, device).