summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--pkgs/top-level/python-packages.nix22
1 files changed, 22 insertions, 0 deletions
diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix
index cad90b3617e7..22cdc99fcefc 100644
--- a/pkgs/top-level/python-packages.nix
+++ b/pkgs/top-level/python-packages.nix
@@ -2796,6 +2796,28 @@ let
     };
   };
 
+  mixpanel = buildPythonPackage rec {
+    version = "4.0.2";
+    name = "mixpanel-${version}";
+
+    src = pkgs.fetchzip {
+      url = "https://github.com/mixpanel/mixpanel-python/archive/${version}.zip";
+      sha256 = "0yq1bcsjzsz7yz4rp69izsdn47rvkld4wki2xmapp8gg2s9i8709";
+    };
+
+    buildInputs = with self; [ pytest mock ];
+    propagatedBuildInputs = with self; [ six ];
+    checkPhase = "py.test tests.py";
+
+    meta = {
+      homepage = https://github.com/mixpanel/mixpanel-python;
+      description = "This is the official Mixpanel Python library. This library
+                     allows for server-side integration of Mixpanel.";
+      license = stdenv.lib.licenses.asl20;
+    };
+  };
+
+
   pkginfo = buildPythonPackage rec {
     version = "1.2.1";
     name = "pkginfo-${version}";