From 76b096916c0011e6a2cb2d9106e4988d5e4c1cc8 Mon Sep 17 00:00:00 2001 From: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com> Date: Sat, 10 Jan 2026 23:07:38 -0600 Subject: [PATCH] add: posthog (#9039) Signed-off-by: Owen-sz --- anda/langs/python/posthog/anda.hcl | 6 ++++ anda/langs/python/posthog/posthog.spec | 46 ++++++++++++++++++++++++++ anda/langs/python/posthog/update.rhai | 1 + 3 files changed, 53 insertions(+) create mode 100644 anda/langs/python/posthog/anda.hcl create mode 100644 anda/langs/python/posthog/posthog.spec create mode 100644 anda/langs/python/posthog/update.rhai diff --git a/anda/langs/python/posthog/anda.hcl b/anda/langs/python/posthog/anda.hcl new file mode 100644 index 0000000000..43dc6efe1f --- /dev/null +++ b/anda/langs/python/posthog/anda.hcl @@ -0,0 +1,6 @@ +project pkg { + arches = ["x86_64"] + rpm { + spec = "posthog.spec" + } +} diff --git a/anda/langs/python/posthog/posthog.spec b/anda/langs/python/posthog/posthog.spec new file mode 100644 index 0000000000..552fe1cf76 --- /dev/null +++ b/anda/langs/python/posthog/posthog.spec @@ -0,0 +1,46 @@ +%global pypi_name posthog +%global _desc Send usage data from your Python code to PostHog. + +Name: python-%{pypi_name} +Version: 7.5.1 +Release: 1%?dist +Summary: Send usage data from your Python code to PostHog +License: MIT +URL: https://posthog.com/docs/libraries/python +Source0: %{pypi_source} +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: python3-pip +BuildRequires: python3-setuptools + +Packager: Owen Zimmerman + +%description +%_desc + +%package -n python3-%{pypi_name} +Summary: %{summary} +Provides: %{pypi_name} +%{?python_provide:%python_provide python3-%{pypi_name}} + +%description -n python3-%{pypi_name} +%_desc + +%prep +%autosetup -n %{pypi_name}-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%pyproject_save_files %{pypi_name} + +%files -n python3-%{pypi_name} -f %{pyproject_files} +%doc README.md +%license LICENSE + +%changelog +* Sat Jan 10 2026 Owen Zimmerman +- Initial commit diff --git a/anda/langs/python/posthog/update.rhai b/anda/langs/python/posthog/update.rhai new file mode 100644 index 0000000000..2217c65f13 --- /dev/null +++ b/anda/langs/python/posthog/update.rhai @@ -0,0 +1 @@ +rpm.version(pypi("posthog"));