From 5221b16e2cf03fd4f90e86e5ae20be2369e3db95 Mon Sep 17 00:00:00 2001 From: Dave Cottlehuber Date: Mon, 11 Nov 2024 00:28:36 +0000 Subject: [PATCH] misc/py-mixpanel: new port - python API for mixpanel analytics Sponsored by: SkunkWerks, GmbH --- misc/Makefile | 1 + misc/py-mixpanel/Makefile | 33 +++++++++++++++++++++++++++++++++ misc/py-mixpanel/distinfo | 3 +++ misc/py-mixpanel/pkg-descr | 6 ++++++ 4 files changed, 43 insertions(+) create mode 100644 misc/py-mixpanel/Makefile create mode 100644 misc/py-mixpanel/distinfo create mode 100644 misc/py-mixpanel/pkg-descr diff --git a/misc/Makefile b/misc/Makefile index 70f86c49c075..7664712fc657 100644 --- a/misc/Makefile +++ b/misc/Makefile @@ -458,6 +458,7 @@ SUBDIR += py-llm-claude-3 SUBDIR += py-log_symbols SUBDIR += py-mffpy + SUBDIR += py-mixpanel SUBDIR += py-mmcv SUBDIR += py-mmdet SUBDIR += py-mmengine diff --git a/misc/py-mixpanel/Makefile b/misc/py-mixpanel/Makefile new file mode 100644 index 000000000000..24eee491d17f --- /dev/null +++ b/misc/py-mixpanel/Makefile @@ -0,0 +1,33 @@ +PORTNAME= mixpanel +DISTVERSION= 4.10.1 +CATEGORIES= misc python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTNAME= mixpanel-${PORTVERSION} + +MAINTAINER= dch@FreeBSD.org +COMMENT= Python client library for Mixpanel Analytics API +WWW= https://mixpanel.com/help/reference/python \ + https://github.com/mixpanel/mixpanel-python + +LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/LICENSE.txt + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=63:devel/py-setuptools@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}wheel>=0.44:devel/py-wheel@${PY_FLAVOR} + +USES= python:3.10+ shebangfix +USE_PYTHON= autoplist concurrent pep517 + +NO_ARCH= yes + +PORTDOCS= README.rst + +OPTIONS_DEFINE= DOCS + +post-install-DOCS-on: + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_MAN} ${PORTDOCS:S|^|${WRKSRC}/|} \ + ${STAGEDIR}${DOCSDIR} + +.include diff --git a/misc/py-mixpanel/distinfo b/misc/py-mixpanel/distinfo new file mode 100644 index 000000000000..a9d83ac26717 --- /dev/null +++ b/misc/py-mixpanel/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1730716232 +SHA256 (mixpanel-4.10.1.tar.gz) = 29a6b5773dd34f05cf8e249f4e1d16e7b6280d6b58894551ce9a5aad7700a115 +SIZE (mixpanel-4.10.1.tar.gz) = 9831 diff --git a/misc/py-mixpanel/pkg-descr b/misc/py-mixpanel/pkg-descr new file mode 100644 index 000000000000..2d2282f89530 --- /dev/null +++ b/misc/py-mixpanel/pkg-descr @@ -0,0 +1,6 @@ +The Mixpanel Python library is designed to be used for scripting, or in +circumstances when a user isn’t directly interacting with your application +on the web or a mobile device. + +The Full API Reference, Library Source Code, and an Example Script is +documented in the GitHub repo.