dev-python/posthog: add 7.22.1

Signed-off-by: Pavel Sobolev <contact@paveloom.dev>
This commit is contained in:
Pavel Sobolev
2026-07-11 19:19:47 +03:00
parent 7b79a8717a
commit ed8203917b
2 changed files with 65 additions and 0 deletions

View File

@@ -1,2 +1,3 @@
DIST posthog-7.19.2.gh.tar.gz 3853161 BLAKE2B 6b22ed9e84e5c03dcb9ba25966f11bee074b5c3273febb8c7bc65c4e024d4365bdab082ef6c032525e747b05602721a31fe7d86ee3e3b72d5f5d1b8febf1d2c4 SHA512 e25a26a01422dd6ef9118e298f83bbe3e384172e7cc18816a67a11e865ab905c495754b835ee4887f874cf6d5826a8e7fdfed1c382a12e71c99831976ee876ec
DIST posthog-7.21.0.gh.tar.gz 4026210 BLAKE2B 2e180d4c265898fbb374410e45586fd6198cff810cd8f435d7f074b7914910e774d9e15e832d6b33d3f4ac298f8247bcf4070c24fcb7905aec34a0717ae0f256 SHA512 e4f9b33b54d6395b142ab718bfa793999ca795fccef075a591ed2c07a74cee87e850313167297e1436de705fd670eae7ca91290ec73d3446de245412e1c0276e
DIST posthog-7.22.1.gh.tar.gz 4130713 BLAKE2B 327d68ae63093ff86cd0ce07fa9e79ed590ac1544ea7676e90cd342f7a780f333349149ef2c9d197f6e286a053ef43c3c8f8bbb7d99c180ec6d6e2ca950eb9db SHA512 2d240219b2fd3025eb8555aa752d3692a7a258be743ea141f10249351a1448c0b44905749755d4e8fa2a6e14f9d0d5adb0fc6d369117614c1f9619c62b2bc709

View File

@@ -0,0 +1,64 @@
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{12..14} )
inherit distutils-r1
DESCRIPTION="Send usage data from your Python code to PostHog"
HOMEPAGE="
https://github.com/PostHog/posthog-python
https://pypi.org/project/posthog/
"
SRC_URI="https://github.com/PostHog/posthog-python/archive/refs/tags/posthog-v${PV}.tar.gz -> ${P}.gh.tar.gz"
S="${WORKDIR}/posthog-python-posthog-v${PV}"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
RDEPEND="
dev-python/backoff[${PYTHON_USEDEP}]
dev-python/distro[${PYTHON_USEDEP}]
dev-python/python-dateutil[${PYTHON_USEDEP}]
dev-python/requests[${PYTHON_USEDEP}]
dev-python/six[${PYTHON_USEDEP}]
dev-python/typing-extensions[${PYTHON_USEDEP}]
"
DEPEND="${RDEPEND}"
BDEPEND="
test? (
${RDEPEND}
dev-python/cachetools[${PYTHON_USEDEP}]
dev-python/django[${PYTHON_USEDEP}]
dev-python/fastmcp[${PYTHON_USEDEP}]
dev-python/freezegun[${PYTHON_USEDEP}]
dev-python/mcp[${PYTHON_USEDEP}]
dev-python/mock[${PYTHON_USEDEP}]
dev-python/opentelemetry-exporter-otlp-proto-http[${PYTHON_USEDEP}]
dev-python/opentelemetry-sdk[${PYTHON_USEDEP}]
dev-python/parameterized[${PYTHON_USEDEP}]
dev-python/pydantic[${PYTHON_USEDEP}]
dev-python/zstandard[${PYTHON_USEDEP}]
)
"
EPYTEST_DESELECT=(
"posthog/test/test_consumer.py::TestConsumer::test_message_only_error_logs_include_posthog_prefix"
"posthog/test/test_consumer.py::TestConsumer::test_request"
"posthog/test/test_consumer.py::TestConsumer::test_upload"
"posthog/test/test_exception_capture.py::test_excepthook"
"posthog/test/test_feature_flags.py::TestLocalEvaluation::test_load_feature_flags_wrong_key"
"posthog/test/test_request.py::TestRequests::test_should_not_timeout"
"posthog/test/test_request.py::TestRequests::test_should_timeout"
"posthog/test/test_request.py::TestRequests::test_valid_request"
)
EPYTEST_IGNORE=( posthog/test/ai/ )
EPYTEST_PLUGINS=( pytest-asyncio pytest-bdd )
distutils_enable_tests pytest