summaryrefslogtreecommitdiff
path: root/www/py-binarycookies
diff options
context:
space:
mode:
Diffstat (limited to 'www/py-binarycookies')
-rw-r--r--www/py-binarycookies/Makefile27
-rw-r--r--www/py-binarycookies/distinfo3
-rw-r--r--www/py-binarycookies/pkg-descr6
3 files changed, 36 insertions, 0 deletions
diff --git a/www/py-binarycookies/Makefile b/www/py-binarycookies/Makefile
new file mode 100644
index 000000000000..1493f8bfaab0
--- /dev/null
+++ b/www/py-binarycookies/Makefile
@@ -0,0 +1,27 @@
+PORTNAME= binarycookies
+PORTVERSION= 2.3.0
+CATEGORIES= www python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= danfe@FreeBSD.org
+COMMENT= Binary cookies (de)serializer written in Python
+WWW= https://pypi.org/project/binarycookies/ \
+ https://github.com/dan1elt0m/binarycookies
+
+LICENSE= MIT
+
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pydantic>=0:devel/py-pydantic@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}typer>=0.12.3:devel/py-typer@${PY_FLAVOR}
+
+USES= python
+USE_PYTHON= autoplist distutils
+
+NO_ARCH= yes
+
+post-patch:
+# Do not pick up leftovers (*.orig files etc.) when making the package
+ @${REINPLACE_CMD} -e '/^package_data =/,+1s,\*,&.py,' \
+ ${WRKSRC}/${PYSETUP}
+
+.include <bsd.port.mk>
diff --git a/www/py-binarycookies/distinfo b/www/py-binarycookies/distinfo
new file mode 100644
index 000000000000..60329e740656
--- /dev/null
+++ b/www/py-binarycookies/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1762636618
+SHA256 (binarycookies-2.3.0.tar.gz) = f5885dfb3284ab3ae9433db270f2d365c5fa97c510f1fc67ba689c4e6816c043
+SIZE (binarycookies-2.3.0.tar.gz) = 11359
diff --git a/www/py-binarycookies/pkg-descr b/www/py-binarycookies/pkg-descr
new file mode 100644
index 000000000000..e53f18a363c9
--- /dev/null
+++ b/www/py-binarycookies/pkg-descr
@@ -0,0 +1,6 @@
+Python library and command-line tool for reading and writing binary
+cookies files used by Apple's Safari web browser on macOS and iOS.
+
+The `bcparser' program supports three output types: JSON (default),
+ASCII (line-by-line text format), and Netscape legacy `cookies.txt'
+format used by popular tools such as curl, wget, yt-dlp, and others.