2020-01-16 15:24:06 +00:00
|
|
|
|
|
|
|
{ buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, isPy37
|
|
|
|
, lib
|
|
|
|
|
|
|
|
# Python Dependencies
|
2018-10-15 19:46:38 +01:00
|
|
|
, mock
|
2020-01-16 15:24:06 +00:00
|
|
|
, pytest
|
2018-10-15 19:46:38 +01:00
|
|
|
, six
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "mixpanel";
|
2020-01-16 15:24:06 +00:00
|
|
|
version = "4.5.0";
|
|
|
|
disabled = !isPy37;
|
2018-10-15 19:46:38 +01:00
|
|
|
|
2020-01-16 15:24:06 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mixpanel";
|
|
|
|
repo = "mixpanel-python";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "1hlc717wcn71i37ngsfb3c605rlyjhsn3v6b5bplq00373r4d39z";
|
2018-10-15 19:46:38 +01:00
|
|
|
};
|
|
|
|
|
2020-01-16 15:24:06 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
six
|
|
|
|
];
|
2018-10-15 19:46:38 +01:00
|
|
|
|
2020-01-16 15:24:06 +00:00
|
|
|
checkInputs = [
|
|
|
|
mock
|
|
|
|
pytest
|
|
|
|
];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
py.test
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/mixpanel/mixpanel-python";
|
|
|
|
description = "Official Mixpanel Python library";
|
2018-10-15 19:46:38 +01:00
|
|
|
license = licenses.asl20;
|
2020-01-16 15:24:06 +00:00
|
|
|
maintainers = with maintainers; [
|
|
|
|
kamadorueda
|
|
|
|
];
|
2018-10-15 19:46:38 +01:00
|
|
|
};
|
|
|
|
}
|