pythonPackages.mixpanel: refactor move to python-modules
This commit is contained in:
parent
1c4bd5703c
commit
12067dc30f
30
pkgs/development/python-modules/mixpanel/default.nix
Normal file
30
pkgs/development/python-modules/mixpanel/default.nix
Normal file
@ -0,0 +1,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";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildInputs = [ 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;
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
@ -1435,27 +1435,7 @@ in {
|
|||||||
|
|
||||||
miniupnpc = callPackage ../development/python-modules/miniupnpc {};
|
miniupnpc = callPackage ../development/python-modules/miniupnpc {};
|
||||||
|
|
||||||
mixpanel = buildPythonPackage rec {
|
mixpanel = callPackage ../development/python-modules/mixpanel { };
|
||||||
version = "4.0.2";
|
|
||||||
name = "mixpanel-${version}";
|
|
||||||
disabled = isPy3k;
|
|
||||||
|
|
||||||
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;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
mpyq = callPackage ../development/python-modules/mpyq { };
|
mpyq = callPackage ../development/python-modules/mpyq { };
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user