2024-04-21 15:54:59 +00:00
|
|
|
{ lib
|
|
|
|
, python3
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
|
|
pname = "rabbit";
|
|
|
|
version = "1.0.2";
|
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "natarajan-chidambaram";
|
|
|
|
repo = "RABBIT";
|
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
hash = "sha256-5ItoWjPpAbQFM6+B+1CvZe5r5rZXQ8pWj7gRIKGX8ZA=";
|
|
|
|
};
|
|
|
|
|
|
|
|
pythonRelaxDeps = true;
|
|
|
|
|
|
|
|
build-system = [
|
|
|
|
python3.pkgs.setuptools
|
|
|
|
python3.pkgs.wheel
|
|
|
|
python3.pkgs.pythonRelaxDepsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
dependencies = with python3.pkgs; [
|
|
|
|
numpy
|
|
|
|
pandas
|
|
|
|
pip
|
|
|
|
requests
|
|
|
|
scikit-learn
|
|
|
|
scipy
|
|
|
|
tqdm
|
|
|
|
xgboost
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "rabbit" ];
|
|
|
|
|
|
|
|
meta = {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Tool for identifying bot accounts based on their recent GitHub event history";
|
2024-04-21 15:54:59 +00:00
|
|
|
homepage = "https://github.com/natarajan-chidambaram/RABBIT";
|
|
|
|
license = lib.licenses.asl20;
|
|
|
|
mainProgram = "rabbit";
|
|
|
|
maintainers = with lib.maintainers; [ drupol ];
|
|
|
|
};
|
|
|
|
}
|