1{ stdenv
2, buildPythonPackage
3, fetchzip
4, pytest
5, mock
6, six
7, isPy3k
8}:
9
10buildPythonPackage rec {
11 version = "4.0.2";
12 pname = "mixpanel";
13 disabled = isPy3k;
14
15 src = fetchzip {
16 url = "https://github.com/mixpanel/mixpanel-python/archive/${version}.zip";
17 sha256 = "0yq1bcsjzsz7yz4rp69izsdn47rvkld4wki2xmapp8gg2s9i8709";
18 };
19
20 buildInputs = [ pytest mock ];
21 propagatedBuildInputs = [ six ];
22 checkPhase = "py.test tests.py";
23
24 meta = with stdenv.lib; {
25 homepage = https://github.com/mixpanel/mixpanel-python;
26 description = ''This is the official Mixpanel Python library'';
27 license = licenses.asl20;
28 };
29
30}