2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
fetchFromGitHub,
|
|
|
|
python3,
|
2023-04-29 16:46:19 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
|
|
pname = "smbmap";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "1.10.4";
|
|
|
|
pyproject = true;
|
2023-04-29 16:46:19 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ShawnDEvans";
|
|
|
|
repo = "smbmap";
|
2023-07-15 17:15:38 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-06-05 15:53:02 +00:00
|
|
|
hash = "sha256-CU0pio+R8JI/vQi13mOmiEeWC+r4EuLwWOQYLnm4Oao=";
|
2023-04-29 16:46:19 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
build-system = with python3.pkgs; [ setuptools ];
|
|
|
|
|
|
|
|
dependencies = with python3.pkgs; [
|
2023-04-29 16:46:19 +00:00
|
|
|
impacket
|
|
|
|
pyasn1
|
|
|
|
pycrypto
|
|
|
|
configparser
|
|
|
|
termcolor
|
|
|
|
];
|
|
|
|
|
|
|
|
# Project has no tests
|
|
|
|
doCheck = false;
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "smbmap" ];
|
2023-04-29 16:46:19 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "SMB enumeration tool";
|
|
|
|
homepage = "https://github.com/ShawnDEvans/smbmap";
|
|
|
|
changelog = "https://github.com/ShawnDEvans/smbmap/releases/tag/v${version}";
|
|
|
|
license = licenses.gpl3Only;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
2024-06-05 15:53:02 +00:00
|
|
|
mainProgram = "smbmap";
|
2023-04-29 16:46:19 +00:00
|
|
|
};
|
|
|
|
}
|