about summary refs log tree commit diff
path: root/pkgs/tools/security
diff options
context:
space:
mode:
authorFabian Affolter <fabian@affolter-engineering.ch>2022-05-06 08:35:01 +0200
committerGitHub <noreply@github.com>2022-05-06 08:35:01 +0200
commitef93fb84862ee6bed75a8f1f11a097dbd002b148 (patch)
treea3ea955324af09c7828420f1df07aa5da71f6cbd /pkgs/tools/security
parentbe824c12574e9c4c5c84cbdbda057c379a3f3d09 (diff)
parent1a87016de5daf980152f275a125dc65fbbae18a6 (diff)
Merge pull request #171638 from fabaff/erosmb
erosmb: init at 0.1.1
Diffstat (limited to 'pkgs/tools/security')
-rw-r--r--pkgs/tools/security/erosmb/default.nix47
1 files changed, 47 insertions, 0 deletions
diff --git a/pkgs/tools/security/erosmb/default.nix b/pkgs/tools/security/erosmb/default.nix
new file mode 100644
index 0000000000000..c0b4586c3524e
--- /dev/null
+++ b/pkgs/tools/security/erosmb/default.nix
@@ -0,0 +1,47 @@
+{ lib
+, fetchFromGitHub
+, python3
+}:
+
+python3.pkgs.buildPythonApplication rec {
+  pname = "erosmb";
+  version = "0.1.1";
+  format = "pyproject";
+
+  src = fetchFromGitHub {
+    owner = "viktor02";
+    repo = "EroSmb";
+    rev = "v${version}";
+    hash = "sha256-d7iSl7weIHWXDnMYQKxafVd5JrZ0fnuWRDpEirBVdcg=";
+  };
+
+  propagatedBuildInputs = with python3.pkgs; [
+    chardet
+    colorama
+    cryptography
+    impacket
+    ldap3
+    ldapdomaindump
+    pyasn1
+    setuptools
+    six
+  ];
+
+  # Project has no tests
+  doCheck = false;
+
+  doInstallCheck = true;
+
+  installCheckPhase = ''
+    runHook preInstallCheck
+    $out/bin/erosmb --help
+    runHook postInstallCheck
+  '';
+
+  meta = with lib; {
+    description = "SMB network scanner";
+    homepage = "https://github.com/viktor02/EroSmb";
+    license = with licenses; [ mit ];
+    maintainers = with maintainers; [ fab ];
+  };
+}