1
2{ buildPythonPackage
3, fetchFromGitHub
4, isPy37
5, lib
6
7# Python Dependencies
8, mock
9, pytest
10, six
11}:
12
13buildPythonPackage rec {
14 pname = "mixpanel";
15 version = "4.5.0";
16 disabled = !isPy37;
17
18 src = fetchFromGitHub {
19 owner = "mixpanel";
20 repo = "mixpanel-python";
21 rev = version;
22 sha256 = "1hlc717wcn71i37ngsfb3c605rlyjhsn3v6b5bplq00373r4d39z";
23 };
24
25 propagatedBuildInputs = [
26 six
27 ];
28
29 checkInputs = [
30 mock
31 pytest
32 ];
33
34 checkPhase = ''
35 py.test
36 '';
37
38 meta = with lib; {
39 homepage = "https://github.com/mixpanel/mixpanel-python";
40 description = "Official Mixpanel Python library";
41 license = licenses.asl20;
42 maintainers = with maintainers; [
43 kamadorueda
44 ];
45 };
46}