Unverified Commit 6d1729a2 authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

Merge pull request #296658 from fabaff/rdwatool

rdwatool: init at 1.2-unstable-2023-11-27
parents d2a1b097 d25d71dd
Loading
Loading
Loading
Loading
+49 −0
Original line number Diff line number Diff line
{ 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";
  };
}