nixpkgs/pkgs/by-name/da/das/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

53 lines
1 KiB
Nix
Raw Normal View History

2023-06-25 09:57:21 +02:00
{ lib
, python3
, fetchFromGitHub
}:
python3.pkgs.buildPythonApplication rec {
pname = "das";
version = "1.0.3";
pyproject = true;
2023-06-25 09:57:21 +02:00
src = fetchFromGitHub {
owner = "snovvcrash";
repo = "DivideAndScan";
rev = "refs/tags/v${version}";
hash = "sha256-WZmWpcBqxsNH96nVWwoepFhsvdxZpYKmAjNd7ghIJMA=";
2023-06-25 09:57:21 +02:00
};
postPatch = ''
substituteInPlace pyproject.toml \
2023-07-23 06:14:43 +02:00
--replace 'networkx = "^2.8.4"' 'networkx = "*"' \
--replace 'netaddr = "^0.8.0"' 'netaddr = "*"'
2023-06-25 09:57:21 +02:00
'';
nativeBuildInputs = [
python3.pkgs.poetry-core
2023-06-25 09:57:21 +02:00
];
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 ];
mainProgram = "das";
2023-06-25 09:57:21 +02:00
};
}