2023-07-15 17:15:38 +00:00
|
|
|
{ lib
|
|
|
|
, python3
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
|
|
pname = "das";
|
2023-08-10 07:59:29 +00:00
|
|
|
version = "0.3.8";
|
2023-07-15 17:15:38 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "snovvcrash";
|
|
|
|
repo = "DivideAndScan";
|
|
|
|
rev = "refs/tags/v${version}";
|
2023-08-10 07:59:29 +00:00
|
|
|
hash = "sha256-a9gnEBTvZshw42M/GrpCgjZh6FOzL45aZqGRyeHO0ec=";
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace pyproject.toml \
|
2023-08-10 07:59:29 +00:00
|
|
|
--replace 'networkx = "^2.8.4"' 'networkx = "*"' \
|
|
|
|
--replace 'pandas = "^1.4.2"' 'pandas = "*"'
|
2023-07-15 17:15:38 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|