summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/june-analytics-python/default.nix
blob: 11866121c9bb771c45610026c96214e75c3c61c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  dateutils,
  requests,
  monotonic,
  backoff,
  unittestCheckHook,
}:

buildPythonPackage {
  pname = "june-analytics-python";
  version = "unstable-2022-07-26";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "juneHQ";
    repo = "analytics-python";
    rev = "462b523a617fbadc016ace45e6eec5762a8ae45f";
    hash = "sha256-9IcikYQW1Q3aAyjIZw6UltD6cYFE+tBK+/EMQpRGCoQ=";
  };

  pythonRelaxDeps = true;

  build-system = [ setuptools ];

  dependencies = [
    dateutils
    requests
    monotonic
    backoff
  ];

  nativeCheckInputs = [
    unittestCheckHook
  ];

  unittestFlagsArray = [ "june" ];

  pythonImportsCheck = [ "june" ];

  meta = {
    description = "Hassle-free way to integrate analytics into any python application";
    homepage = "https://github.com/juneHQ/analytics-python";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ soyouzpanda ];
  };
}