about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorFabian Affolter <fabian@affolter-engineering.ch>2024-09-27 09:10:14 +0200
committerGitHub <noreply@github.com>2024-09-27 09:10:14 +0200
commit158b5540961d9734e971be8f1ee611858297ca6f (patch)
treef2ba8b76a887d6109b40d93d70477edd6f826ce7 /pkgs
parent1e15add1c28614820fcd4b75e8a5001f1e0b290f (diff)
parenta7ed0eade0d12de714b08371dd066f0e94b3cf73 (diff)
smbclient-ng: init at 2.1.5 (#344394)
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/by-name/sm/smbclient-ng/package.nix43
1 files changed, 43 insertions, 0 deletions
diff --git a/pkgs/by-name/sm/smbclient-ng/package.nix b/pkgs/by-name/sm/smbclient-ng/package.nix
new file mode 100644
index 0000000000000..7e4d4ef7cff9c
--- /dev/null
+++ b/pkgs/by-name/sm/smbclient-ng/package.nix
@@ -0,0 +1,43 @@
+{
+  lib,
+  fetchFromGitHub,
+  python3,
+}:
+
+python3.pkgs.buildPythonApplication rec {
+  pname = "smbclient-ng";
+  version = "2.1.5";
+  pyproject = true;
+
+  src = fetchFromGitHub {
+    owner = "p0dalirius";
+    repo = "smbclient-ng";
+    rev = "refs/tags/${version}";
+    hash = "sha256-5ObqmCvMoBuQOPbQATrIVzxnxrJtvB+iUJSS7sqs6hI=";
+  };
+
+  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";
+  };
+}