diff --git a/pkgs/tools/security/das/default.nix b/pkgs/tools/security/das/default.nix new file mode 100644 index 000000000000..f8ccf8cb4ac7 --- /dev/null +++ b/pkgs/tools/security/das/default.nix @@ -0,0 +1,50 @@ +{ lib +, python3 +, fetchFromGitHub +}: + +python3.pkgs.buildPythonApplication rec { + pname = "das"; + version = "0.3.6"; + format = "pyproject"; + + src = fetchFromGitHub { + owner = "snovvcrash"; + repo = "DivideAndScan"; + rev = "refs/tags/v${version}"; + hash = "sha256-UFuIy19OUiS8VmmfGm0F4hI4s4BU5b4ZVh40bFGiLfk="; + }; + + postPatch = '' + substituteInPlace pyproject.toml \ + --replace 'networkx = "^2.8.4"' 'networkx = "*"' + ''; + + nativeBuildInputs = with python3.pkgs; [ + poetry-core + ]; + + propagatedBuildInputs = with python3.pkgs; [ + dash + defusedxml + dnspython + netaddr + networkx + pandas + plotly + python-nmap + scipy + tinydb + ]; + + pythonImportsCheck = [ + "das" + ]; + + meta = with lib; { + description = "Divide full port scan results and use it for targeted Nmap runs"; + homepage = "https://github.com/snovvcrash/DivideAndScan"; + license = licenses.bsd2; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 9992ec8a8b46..5630ed947d05 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -4625,6 +4625,8 @@ with pkgs; dapr-cli = callPackage ../development/tools/dapr/cli { }; + das = callPackage ../tools/security/das { }; + dasel = callPackage ../applications/misc/dasel { }; dasher = callPackage ../applications/accessibility/dasher { };