Commit 50447fe3 authored by David Arnold's avatar David Arnold Committed by Yt
Browse files

python3Packages.posthog: fix package testing

parent 249efd22
Loading
Loading
Loading
Loading
+9 −9
Original line number Diff line number Diff line
{ 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";