2024-03-30 11:18:11 +00:00
|
|
|
{ lib
|
|
|
|
, python3
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
|
|
pname = "rabbit";
|
2024-11-21 14:56:33 +00:00
|
|
|
version = "2.3.1";
|
2024-03-30 11:18:11 +00:00
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "natarajan-chidambaram";
|
|
|
|
repo = "RABBIT";
|
2024-04-01 02:26:31 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-11-21 14:56:33 +00:00
|
|
|
hash = "sha256-QmP6yfVnlYoNVa4EUtKR9xbCnQW2V6deV0+hN9IGtic=";
|
2024-03-30 11:18:11 +00:00
|
|
|
};
|
|
|
|
|
2024-07-25 14:37:46 +00:00
|
|
|
pythonRelaxDeps = [
|
|
|
|
"numpy"
|
|
|
|
];
|
2024-03-30 11:18:11 +00:00
|
|
|
|
2024-11-21 14:56:33 +00:00
|
|
|
build-system = with python3.pkgs; [
|
|
|
|
setuptools
|
2024-03-30 11:18:11 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
dependencies = with python3.pkgs; [
|
2024-08-28 21:09:53 +00:00
|
|
|
joblib
|
2024-03-30 11:18:11 +00:00
|
|
|
numpy
|
|
|
|
pandas
|
2024-06-22 17:11:46 +00:00
|
|
|
python-dateutil
|
2024-03-30 11:18:11 +00:00
|
|
|
requests
|
|
|
|
scikit-learn
|
|
|
|
scipy
|
|
|
|
tqdm
|
2024-06-22 17:11:46 +00:00
|
|
|
urllib3
|
2024-03-30 11:18:11 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "rabbit" ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Tool for identifying bot accounts based on their recent GitHub event history";
|
|
|
|
homepage = "https://github.com/natarajan-chidambaram/RABBIT";
|
|
|
|
license = lib.licenses.asl20;
|
|
|
|
mainProgram = "rabbit";
|
|
|
|
maintainers = with lib.maintainers; [ drupol ];
|
|
|
|
};
|
|
|
|
}
|