about summary refs log tree commit diff
path: root/pkgs/tools/security/offensive-azure
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2022-06-13 10:43:38 +0200
committerFabian Affolter <mail@fabian-affolter.ch>2022-06-13 10:43:38 +0200
commit022562fcf01b5e4abdf1018e7f0eab401c0d9258 (patch)
tree37cef028a4276a0c508d76ae365d6d4a10f0509e /pkgs/tools/security/offensive-azure
parentc01fa626c8dc243c20724cfc56da2ae7f7aa14a9 (diff)
offensive-azure: init at 0.4.10
Diffstat (limited to 'pkgs/tools/security/offensive-azure')
-rw-r--r--pkgs/tools/security/offensive-azure/default.nix54
1 files changed, 54 insertions, 0 deletions
diff --git a/pkgs/tools/security/offensive-azure/default.nix b/pkgs/tools/security/offensive-azure/default.nix
new file mode 100644
index 0000000000000..9d320d081c22b
--- /dev/null
+++ b/pkgs/tools/security/offensive-azure/default.nix
@@ -0,0 +1,54 @@
+{ lib
+, fetchFromGitHub
+, python3
+}:
+
+python3.pkgs.buildPythonApplication rec {
+  pname = "offensive-azure";
+  version = "0.4.10";
+  format = "pyproject";
+
+  src = fetchFromGitHub {
+    owner = "blacklanternsecurity";
+    repo = pname;
+    rev = "v${version}";
+    hash = "sha256-5JHix+/uGGhXM89VLimI81g4evci5ZUtNV1c1xopjuI=";
+  };
+
+  nativeBuildInputs = with python3.pkgs; [
+    poetry-core
+  ];
+
+  propagatedBuildInputs = with python3.pkgs; [
+    certifi
+    charset-normalizer
+    colorama
+    dnspython
+    idna
+    pycryptodome
+    python-whois
+    requests
+    requests
+  ];
+
+  checkInputs = with python3.pkgs; [
+    pytestCheckHook
+  ];
+
+  postPatch = ''
+    # Use default Python module
+    substituteInPlace pyproject.toml \
+      --replace 'uuid = "^1.30"' ""
+  '';
+
+  pythonImportsCheck = [
+    "offensive_azure"
+  ];
+
+  meta = with lib; {
+    description = "Collection of offensive tools targeting Microsoft Azure";
+    homepage = "https://github.com/blacklanternsecurity/offensive-azure";
+    license = licenses.mit;
+    maintainers = with maintainers; [ fab ];
+  };
+}