Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.1 kB · 62 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263{ lib, buildPythonPackage, fetchFromGitHub# build inputs, requests, six, monotonic, backoff, python-dateutil# check inputs, pytestCheckHook, mock, freezegun}:let pname = "posthog"; version = "3.3.2";inbuildPythonPackage { inherit pname version; format = "setuptools";
src = fetchFromGitHub { owner = "PostHog"; repo = "posthog-python"; rev = "refs/tags/v${version}"; hash = "sha256-7Bs0KDa799qt8sKwmj6oO0L/nWzczI+UXGWNXGv7B7s="; };
propagatedBuildInputs = [ requests six monotonic backoff python-dateutil ];
nativeCheckInputs = [ pytestCheckHook mock freezegun ];
pythonImportsCheck = [ "posthog" ];
disabledTests = [ "test_load_feature_flags_wrong_key" # Tests require network access "test_request" "test_upload" ];
meta = with lib; { description = "Official PostHog python library"; homepage = "https://github.com/PostHog/posthog-python"; changelog = "https://github.com/PostHog/posthog-python/releases/tag/v${version}"; license = licenses.mit; maintainers = with maintainers; [ happysalada ]; };}