nixpkgs/pkgs/tools/security/erosmb/default.nix

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

48 lines
887 B
Nix
Raw Normal View History

2022-05-05 08:58:13 +00:00
{ lib
, fetchFromGitHub
, python3
}:
python3.pkgs.buildPythonApplication rec {
pname = "erosmb";
2022-10-07 10:59:08 +00:00
version = "0.1.2";
2022-05-05 08:58:13 +00:00
format = "pyproject";
src = fetchFromGitHub {
owner = "viktor02";
repo = "EroSmb";
2022-10-07 10:59:08 +00:00
rev = "refs/tags/v${version}";
hash = "sha256-H3ozc1DXBdXlqEg53eVGGTqK6m2eiY+Qtl0Ul3lUByk=";
2022-05-05 08:58:13 +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";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}