pythonPackages.mixpanel: 4.0.2 -> 4.5.0
This commit is contained in:
parent
9dadd151e8
commit
7d3e3cdf84
@ -1,30 +1,46 @@
|
|||||||
{ stdenv
|
|
||||||
, buildPythonPackage
|
{ buildPythonPackage
|
||||||
, fetchzip
|
, fetchFromGitHub
|
||||||
, pytest
|
, isPy37
|
||||||
|
, lib
|
||||||
|
|
||||||
|
# Python Dependencies
|
||||||
, mock
|
, mock
|
||||||
|
, pytest
|
||||||
, six
|
, six
|
||||||
, isPy3k
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
version = "4.0.2";
|
|
||||||
pname = "mixpanel";
|
pname = "mixpanel";
|
||||||
disabled = isPy3k;
|
version = "4.5.0";
|
||||||
|
disabled = !isPy37;
|
||||||
|
|
||||||
src = fetchzip {
|
src = fetchFromGitHub {
|
||||||
url = "https://github.com/mixpanel/mixpanel-python/archive/${version}.zip";
|
owner = "mixpanel";
|
||||||
sha256 = "0yq1bcsjzsz7yz4rp69izsdn47rvkld4wki2xmapp8gg2s9i8709";
|
repo = "mixpanel-python";
|
||||||
|
rev = version;
|
||||||
|
sha256 = "1hlc717wcn71i37ngsfb3c605rlyjhsn3v6b5bplq00373r4d39z";
|
||||||
};
|
};
|
||||||
|
|
||||||
checkInputs = [ pytest mock ];
|
propagatedBuildInputs = [
|
||||||
propagatedBuildInputs = [ six ];
|
six
|
||||||
checkPhase = "py.test tests.py";
|
];
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
checkInputs = [
|
||||||
homepage = https://github.com/mixpanel/mixpanel-python;
|
mock
|
||||||
description = ''This is the official Mixpanel Python library'';
|
pytest
|
||||||
|
];
|
||||||
|
|
||||||
|
checkPhase = ''
|
||||||
|
py.test
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
homepage = "https://github.com/mixpanel/mixpanel-python";
|
||||||
|
description = "Official Mixpanel Python library";
|
||||||
license = licenses.asl20;
|
license = licenses.asl20;
|
||||||
|
maintainers = with maintainers; [
|
||||||
|
kamadorueda
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user