depot/pkgs/by-name/sm/smbclient-ng/package.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

43 lines
929 B
Nix

{
lib,
fetchFromGitHub,
python3,
}:
python3.pkgs.buildPythonApplication rec {
pname = "smbclient-ng";
version = "2.1.6";
pyproject = true;
src = fetchFromGitHub {
owner = "p0dalirius";
repo = "smbclient-ng";
rev = "refs/tags/${version}";
hash = "sha256-T1OAiRL7AGMz12dFIPOESS77lVd62iaBt9vXCdzqJBQ=";
};
pythonRelaxDeps = [
"impacket"
"pefile"
];
build-system = with python3.pkgs; [ poetry-core ];
dependencies = with python3.pkgs; [
charset-normalizer
impacket
pefile
rich
];
pythonImportsCheck = [ "smbclientng" ];
meta = {
description = "Tool to interact with SMB shares";
homepage = "https://github.com/p0dalirius/smbclient-ng";
changelog = "https://github.com/p0dalirius/smbclient-ng/releases/tag/${version}";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ fab ];
mainProgram = "smbclientng";
};
}