depot/third_party/nixpkgs/pkgs/tools/security/smbmap/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

42 lines
891 B
Nix

{
lib,
fetchFromGitHub,
python3,
}:
python3.pkgs.buildPythonApplication rec {
pname = "smbmap";
version = "1.10.4";
pyproject = true;
src = fetchFromGitHub {
owner = "ShawnDEvans";
repo = "smbmap";
rev = "refs/tags/v${version}";
hash = "sha256-CU0pio+R8JI/vQi13mOmiEeWC+r4EuLwWOQYLnm4Oao=";
};
build-system = with python3.pkgs; [ setuptools ];
dependencies = with python3.pkgs; [
impacket
pyasn1
pycrypto
configparser
termcolor
];
# Project has no tests
doCheck = false;
pythonImportsCheck = [ "smbmap" ];
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 ];
mainProgram = "smbmap";
};
}