about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/mixpanel/default.nix
blob: 473520177177cb2677ec250ca9b1a545df8ef040 (plain) (blame)
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
{ buildPythonPackage
, fetchFromGitHub
, lib

# Python Dependencies
, six
, urllib3
, requests

# tests
, pytestCheckHook
, responses
}:

buildPythonPackage rec {
  pname = "mixpanel";
  version = "4.10.0";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "mixpanel";
    repo = "mixpanel-python";
    rev = "refs/tags/v${version}";
    hash = "sha256-jV2NLEc23uaI5Q7ZXDwGaZV9iAKQLMAETRTw8epZwQA=";
  };

  propagatedBuildInputs = [
    requests
    six
    urllib3
  ];

  nativeCheckInputs = [
    pytestCheckHook
    responses
  ];

  meta = with lib; {
    homepage = "https://github.com/mixpanel/mixpanel-python";
    description = "Official Mixpanel Python library";
    license = licenses.asl20;
    maintainers = with maintainers; [
      kamadorueda
    ];
  };
}