From d7b1d846280c654816bda50b33fc2eed3de19d64 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 10 Oct 2024 23:17:23 +0200 Subject: [PATCH] python312Packages.posthog: 3.6.6 -> 3.7.0 Diff: https://github.com/PostHog/posthog-python/compare/refs/tags/v3.6.6...v3.7.0 Changelog: https://github.com/PostHog/posthog-python/releases/tag/v3.7.0 --- .../python-modules/posthog/default.nix | 47 ++++++++++--------- 1 file changed, 24 insertions(+), 23 deletions(-) diff --git a/pkgs/development/python-modules/posthog/default.nix b/pkgs/development/python-modules/posthog/default.nix index cd21874786f3..fdd93de663bf 100644 --- a/pkgs/development/python-modules/posthog/default.nix +++ b/pkgs/development/python-modules/posthog/default.nix @@ -1,45 +1,44 @@ { lib, + backoff, buildPythonPackage, fetchFromGitHub, - # build inputs - requests, - six, - monotonic, - backoff, - python-dateutil, - # check inputs - pytestCheckHook, - mock, freezegun, + mock, + monotonic, + pytestCheckHook, + python-dateutil, + requests, + setuptools, + six, }: -let + +buildPythonPackage rec { pname = "posthog"; - version = "3.6.6"; -in -buildPythonPackage { - inherit pname version; - format = "setuptools"; + version = "3.7.0"; + pyproject = true; src = fetchFromGitHub { owner = "PostHog"; repo = "posthog-python"; rev = "refs/tags/v${version}"; - hash = "sha256-oIkp3KIwfcrrXLuotyC54+RcitCG0o3jlJkTnchtCrk="; + hash = "sha256-1evqG/rdHBs0bAHM+bIHyT4tFE6tAE+aJyu5r0QqAMk="; }; - propagatedBuildInputs = [ + build-system = [ setuptools ]; + + dependencies = [ + backoff + monotonic + python-dateutil requests six - monotonic - backoff - python-dateutil ]; nativeCheckInputs = [ - pytestCheckHook - mock freezegun + mock + pytestCheckHook ]; pythonImportsCheck = [ "posthog" ]; @@ -47,12 +46,14 @@ buildPythonPackage { disabledTests = [ "test_load_feature_flags_wrong_key" # Tests require network access + "test_excepthook" "test_request" + "test_trying_to_use_django_integration" "test_upload" ]; meta = with lib; { - description = "Official PostHog python library"; + description = "Module for interacting with PostHog"; homepage = "https://github.com/PostHog/posthog-python"; changelog = "https://github.com/PostHog/posthog-python/releases/tag/v${version}"; license = licenses.mit;