depot/third_party/nixpkgs/pkgs/by-name/ra/rabbit/package.nix

50 lines
952 B
Nix
Raw Normal View History

{ lib
, python3
, fetchFromGitHub
}:
python3.pkgs.buildPythonApplication rec {
pname = "rabbit";
version = "2.1.0";
pyproject = true;
src = fetchFromGitHub {
owner = "natarajan-chidambaram";
repo = "RABBIT";
rev = "refs/tags/${version}";
hash = "sha256-l5k5wPEd6/x7xHc+GlnoyTry7GRTnzNiTLxrLAZFVzQ=";
};
pythonRelaxDeps = [
"numpy"
"scipy"
];
build-system = [
python3.pkgs.setuptools
python3.pkgs.wheel
];
dependencies = with python3.pkgs; [
numpy
pandas
python-dateutil
requests
scikit-learn
scipy
tqdm
urllib3
xgboost
];
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 ];
};
}