python3Packages.posthog: fix package testing
This commit is contained in:
parent
249efd2271
commit
50447fe31f
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user