python3Packages.posthog: fix package testing

This commit is contained in:
David Arnold 2023-07-09 22:02:11 -05:00 committed by Yt
parent 249efd2271
commit 50447fe31f

View File

@ -1,5 +1,4 @@
{ lib
, stdenv
, buildPythonPackage
, fetchFromGitHub
# build inputs
@ -9,12 +8,9 @@
, backoff
, python-dateutil
# check inputs
, pytestCheckHook
, mock
, freezegun
, pylint
, flake8
, coverage
, pytest
}:
let
pname = "posthog";
@ -40,18 +36,22 @@ buildPythonPackage {
];
nativeCheckInputs = [
pytestCheckHook
mock
freezegun
pylint
flake8
coverage
pytest
];
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";