From e656ac409b8e8ea58f27f5c009c0a1358c6bba86 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 20 Oct 2024 11:17:16 +0200 Subject: [PATCH] graphpython: init at 1.0-unstable-2024-07-28 Microsoft Graph API (Entra, o365, and Intune) enumeration and exploitation toolkit https://github.com/mlcsec/Graphpython --- pkgs/by-name/gr/graphpython/package.nix | 45 +++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 pkgs/by-name/gr/graphpython/package.nix diff --git a/pkgs/by-name/gr/graphpython/package.nix b/pkgs/by-name/gr/graphpython/package.nix new file mode 100644 index 000000000000..f9c583d48745 --- /dev/null +++ b/pkgs/by-name/gr/graphpython/package.nix @@ -0,0 +1,45 @@ +{ + lib, + fetchFromGitHub, + python3, +}: + +python3.pkgs.buildPythonApplication rec { + pname = "graphpython"; + version = "1.0-unstable-2024-07-28"; + pyproject = true; + + src = fetchFromGitHub { + owner = "mlcsec"; + repo = "Graphpython"; + # https://github.com/mlcsec/Graphpython/issues/1 + rev = "ee7dbda7fe881a9a207ca8661d42c505b8491ea3"; + hash = "sha256-64M/Cc49mlceY5roBVuSsDIcbDx+lrX6oSjPAu9YDwA="; + }; + + build-system = with python3.pkgs; [ setuptools ]; + + dependencies = with python3.pkgs; [ + beautifulsoup4 + cryptography + dnspython + pyjwt + requests + tabulate + termcolor + tqdm + ]; + + pythonImportsCheck = [ "Graphpython" ]; + + # Project has no tests + doCheck = false; + + meta = { + description = "Microsoft Graph API (Entra, o365, and Intune) enumeration and exploitation toolkit"; + homepage = "https://github.com/mlcsec/Graphpython"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ fab ]; + mainProgram = "graphpython"; + }; +}