1
2{ buildPythonPackage
3, fetchFromGitHub
4, lib
5
6# Python Dependencies
7, six
8, urllib3
9, requests
10
11# tests
12, pytestCheckHook
13, responses
14}:
15
16buildPythonPackage rec {
17 pname = "mixpanel";
18 version = "4.10.0";
19 format = "setuptools";
20
21 src = fetchFromGitHub {
22 owner = "mixpanel";
23 repo = "mixpanel-python";
24 rev = "refs/tags/v${version}";
25 hash = "sha256-jV2NLEc23uaI5Q7ZXDwGaZV9iAKQLMAETRTw8epZwQA=";
26 };
27
28 propagatedBuildInputs = [
29 requests
30 six
31 urllib3
32 ];
33
34 nativeCheckInputs = [
35 pytestCheckHook
36 responses
37 ];
38
39 meta = with lib; {
40 homepage = "https://github.com/mixpanel/mixpanel-python";
41 description = "Official Mixpanel Python library";
42 license = licenses.asl20;
43 maintainers = with maintainers; [
44 kamadorueda
45 ];
46 };
47}