From 68a3400aadd2ddadc14f6a29f67f8d6bd66e2bdd Mon Sep 17 00:00:00 2001 From: Pol Dellaiera Date: Sat, 30 Mar 2024 12:18:11 +0100 Subject: [PATCH] rabbit: init at 1.0.0 --- pkgs/by-name/ra/rabbit/package.nix | 46 ++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 pkgs/by-name/ra/rabbit/package.nix diff --git a/pkgs/by-name/ra/rabbit/package.nix b/pkgs/by-name/ra/rabbit/package.nix new file mode 100644 index 000000000000..7165744369de --- /dev/null +++ b/pkgs/by-name/ra/rabbit/package.nix @@ -0,0 +1,46 @@ +{ lib +, python3 +, fetchFromGitHub +}: + +python3.pkgs.buildPythonApplication rec { + pname = "rabbit"; + version = "1.0.0"; + pyproject = true; + + src = fetchFromGitHub { + owner = "natarajan-chidambaram"; + repo = "RABBIT"; + rev = version; + hash = "sha256-IRG3OcWutkZA4oegeEIDyaIadl3dLaMneqOt/H2/Il4="; + }; + + 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 = { + description = "A 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 ]; + }; +}