evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / posthog / default.nix
blobfdd93de663bfdad2ae1f9c23adb97dfae40c3b69
2   lib,
3   backoff,
4   buildPythonPackage,
5   fetchFromGitHub,
6   freezegun,
7   mock,
8   monotonic,
9   pytestCheckHook,
10   python-dateutil,
11   requests,
12   setuptools,
13   six,
16 buildPythonPackage rec {
17   pname = "posthog";
18   version = "3.7.0";
19   pyproject = true;
21   src = fetchFromGitHub {
22     owner = "PostHog";
23     repo = "posthog-python";
24     rev = "refs/tags/v${version}";
25     hash = "sha256-1evqG/rdHBs0bAHM+bIHyT4tFE6tAE+aJyu5r0QqAMk=";
26   };
28   build-system = [ setuptools ];
30   dependencies = [
31     backoff
32     monotonic
33     python-dateutil
34     requests
35     six
36   ];
38   nativeCheckInputs = [
39     freezegun
40     mock
41     pytestCheckHook
42   ];
44   pythonImportsCheck = [ "posthog" ];
46   disabledTests = [
47     "test_load_feature_flags_wrong_key"
48     # Tests require network access
49     "test_excepthook"
50     "test_request"
51     "test_trying_to_use_django_integration"
52     "test_upload"
53   ];
55   meta = with lib; {
56     description = "Module for interacting with PostHog";
57     homepage = "https://github.com/PostHog/posthog-python";
58     changelog = "https://github.com/PostHog/posthog-python/releases/tag/v${version}";
59     license = licenses.mit;
60     maintainers = with maintainers; [ happysalada ];
61   };