summaryrefslogtreecommitdiffstats
path: root/pkgs/by-name/da/das/package.nix
blob: 8fdd7af701c38949399be43ce294132a9c2c517f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
{
  lib,
  python3Packages,
  fetchFromGitHub,
  versionCheckHook,
}:

python3Packages.buildPythonApplication (finalAttrs: {
  pname = "das";
  version = "1.0.3";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "snovvcrash";
    repo = "DivideAndScan";
    tag = "v${finalAttrs.version}";
    hash = "sha256-WZmWpcBqxsNH96nVWwoepFhsvdxZpYKmAjNd7ghIJMA=";
  };

  pythonRelaxDeps = [
    "dash"
    "defusedxml"
    "netaddr"
    "networkx"
    "pandas"
    "plotly"
  ];

  build-system = with python3Packages; [ poetry-core ];

  dependencies = with python3Packages; [
    dash
    defusedxml
    dnspython
    netaddr
    networkx
    pandas
    plotly
    python-nmap
    scipy
    tinydb
  ];

  pythonImportsCheck = [ "das" ];

  nativeCheckInputs = [ versionCheckHook ];

  meta = {
    description = "Divide full port scan results and use it for targeted Nmap runs";
    homepage = "https://github.com/snovvcrash/DivideAndScan";
    changelog = "https://github.com/snovvcrash/DivideAndScan/releases/tag/v${finalAttrs.version}";
    license = lib.licenses.bsd2;
    maintainers = with lib.maintainers; [ fab ];
    mainProgram = "das";
  };
})