about summary refs log tree commit diff
path: root/pkgs/by-name/sm/smbclient-ng/package.nix
blob: 7e4d4ef7cff9c08f68f3c7a9a5dffeaf85e390a4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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";
  };
}