2022-05-18 14:49:53 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, python3
|
|
|
|
}:
|
|
|
|
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
|
|
pname = "erosmb";
|
2023-02-16 17:41:37 +00:00
|
|
|
version = "0.1.5";
|
2022-05-18 14:49:53 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "viktor02";
|
|
|
|
repo = "EroSmb";
|
2022-10-21 18:38:19 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2023-02-16 17:41:37 +00:00
|
|
|
hash = "sha256-9Zs5Z+3JiBiJkV9Ixl5pPmLv0dUT59CT0UkQDsmneWc=";
|
2022-05-18 14:49:53 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
|
|
chardet
|
|
|
|
colorama
|
|
|
|
cryptography
|
|
|
|
impacket
|
|
|
|
ldap3
|
|
|
|
ldapdomaindump
|
|
|
|
pyasn1
|
|
|
|
setuptools
|
|
|
|
six
|
|
|
|
];
|
|
|
|
|
|
|
|
# Project has no tests
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
doInstallCheck = true;
|
|
|
|
|
|
|
|
installCheckPhase = ''
|
|
|
|
runHook preInstallCheck
|
|
|
|
$out/bin/erosmb --help
|
|
|
|
runHook postInstallCheck
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "SMB network scanner";
|
|
|
|
homepage = "https://github.com/viktor02/EroSmb";
|
2022-11-27 09:42:12 +00:00
|
|
|
changelog = "https://github.com/viktor02/EroSmb/releases/tag/v${version}";
|
2022-05-18 14:49:53 +00:00
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "erosmb";
|
2022-05-18 14:49:53 +00:00
|
|
|
};
|
|
|
|
}
|