about summary refs log tree commit diff
path: root/pkgs/by-name/rd/rdwatool/package.nix
blob: 49459eb39a9e1aa685cfd698b14e89c144d74983 (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
44
45
46
47
48
49
{ lib
, fetchFromGitHub
, python3
}:

python3.pkgs.buildPythonApplication rec {
  pname = "rdwatool";
  version = "1.2-unstable-2023-11-27";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "p0dalirius";
    repo = "RDWAtool";
    rev = "60b7816f06d155bd3d218b76b69d9419b8a82dbe";
    hash = "sha256-0mjnZiF8DxVbI8Lr12b7jzn+x+mn6Mel8LaIy8heEdI=";
  };

  pythonRelaxDeps = [
    "urllib3"
  ];

  pythonRemoveDeps = [
    "bs4"
  ];

  nativeBuildInputs = with python3.pkgs; [
    pythonRelaxDepsHook
    setuptools
  ];

  propagatedBuildInputs = with python3.pkgs; [
    beautifulsoup4
    requests
    urllib3
    xlsxwriter
  ];

  pythonImportsCheck = [
    "rdwatool"
  ];

  meta = with lib; {
    description = "Tool to extract information from a Microsoft Remote Desktop Web Access (RDWA) application";
    homepage = "https://github.com/p0dalirius/RDWAtool";
    license = licenses.gpl2Only;
    maintainers = with maintainers; [ fab ];
    mainProgram = "rdwatool";
  };
}