summary refs log tree commit diff
path: root/pkgs/development/python-modules/mixpanel/default.nix
blob: e770eedbfc31defd45d60665544236d2098d6e8d (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
{ stdenv
, buildPythonPackage
, fetchzip
, pytest
, mock
, six
, isPy3k
}:

buildPythonPackage rec {
  version = "4.0.2";
  pname = "mixpanel";
  disabled = isPy3k;

  src = fetchzip {
    url = "https://github.com/mixpanel/mixpanel-python/archive/${version}.zip";
    sha256 = "0yq1bcsjzsz7yz4rp69izsdn47rvkld4wki2xmapp8gg2s9i8709";
  };

  checkInputs = [ pytest mock ];
  propagatedBuildInputs = [ six ];
  checkPhase = "py.test tests.py";

  meta = with stdenv.lib; {
    homepage = https://github.com/mixpanel/mixpanel-python;
    description = ''This is the official Mixpanel Python library'';
    license = licenses.asl20;
  };

}