1{
2 lib,
3 python3Packages,
4 fetchFromGitHub,
5 versionCheckHook,
6}:
7
8python3Packages.buildPythonApplication rec {
9 pname = "das";
10 version = "1.0.3";
11 pyproject = true;
12
13 src = fetchFromGitHub {
14 owner = "snovvcrash";
15 repo = "DivideAndScan";
16 tag = "v${version}";
17 hash = "sha256-WZmWpcBqxsNH96nVWwoepFhsvdxZpYKmAjNd7ghIJMA=";
18 };
19
20 pythonRelaxDeps = [
21 "dash"
22 "defusedxml"
23 "netaddr"
24 "networkx"
25 "plotly"
26 ];
27
28 build-system = with python3Packages; [ poetry-core ];
29
30 dependencies = with python3Packages; [
31 dash
32 defusedxml
33 dnspython
34 netaddr
35 networkx
36 pandas
37 plotly
38 python-nmap
39 scipy
40 tinydb
41 ];
42
43 pythonImportsCheck = [ "das" ];
44
45 nativeCheckInputs = [
46 versionCheckHook
47 ];
48
49 meta = {
50 description = "Divide full port scan results and use it for targeted Nmap runs";
51 homepage = "https://github.com/snovvcrash/DivideAndScan";
52 changelog = "https://github.com/snovvcrash/DivideAndScan/releases/tag/v${version}";
53 license = lib.licenses.bsd2;
54 maintainers = with lib.maintainers; [ fab ];
55 mainProgram = "das";
56 };
57}