at 24.05-pre 51 lines 1.0 kB view raw
1{ lib 2, python3 3, fetchFromGitHub 4}: 5 6python3.pkgs.buildPythonApplication rec { 7 pname = "das"; 8 version = "0.3.8"; 9 format = "pyproject"; 10 11 src = fetchFromGitHub { 12 owner = "snovvcrash"; 13 repo = "DivideAndScan"; 14 rev = "refs/tags/v${version}"; 15 hash = "sha256-a9gnEBTvZshw42M/GrpCgjZh6FOzL45aZqGRyeHO0ec="; 16 }; 17 18 postPatch = '' 19 substituteInPlace pyproject.toml \ 20 --replace 'networkx = "^2.8.4"' 'networkx = "*"' \ 21 --replace 'pandas = "^1.4.2"' 'pandas = "*"' 22 ''; 23 24 nativeBuildInputs = with python3.pkgs; [ 25 poetry-core 26 ]; 27 28 propagatedBuildInputs = with python3.pkgs; [ 29 dash 30 defusedxml 31 dnspython 32 netaddr 33 networkx 34 pandas 35 plotly 36 python-nmap 37 scipy 38 tinydb 39 ]; 40 41 pythonImportsCheck = [ 42 "das" 43 ]; 44 45 meta = with lib; { 46 description = "Divide full port scan results and use it for targeted Nmap runs"; 47 homepage = "https://github.com/snovvcrash/DivideAndScan"; 48 license = licenses.bsd2; 49 maintainers = with maintainers; [ fab ]; 50 }; 51}