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

xnlinkfinder: 6.0 -> 8.2 (#514548)

parents a9ade7fa be57facc
Loading
Loading
Loading
Loading
+13 −11
Original line number Diff line number Diff line
{
  lib,
  fetchFromGitHub,
  fetchpatch,
  python3,
  writableTmpDirAsHomeHook,
}:

python3.pkgs.buildPythonApplication (finalAttrs: {
  pname = "xnlinkfinder";
  version = "6.0";
  version = "8.2";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "xnl-h4ck3r";
    repo = "xnLinkFinder";
    tag = "v${finalAttrs.version}";
    hash = "sha256-UMHMWHLJOhEeR+vO4YE3aNzdsvMAXPpQHQgdFf1QeMY=";
    hash = "sha256-xym8ruHPAseqmWLUtCPTlpr3REDrpbWor66aNvfASjA=";
  };

  patches = [
    # Clean-up setup.py
    (fetchpatch {
      name = "clean-up.patch";
      url = "https://github.com/xnl-h4ck3r/xnLinkFinder/commit/8ef5e2ecf4c627b389cb7bb526f10fffe84acc13.patch";
      hash = "sha256-14j3dFgehhPdqAe4e9FsB8sD66hKnNaPmDJRV1mQTDo=";
    })
  pythonRemoveDeps = [
    # python already provides urllib.parse
    "urlparse3"
  ];

  build-system = with python3.pkgs; [ setuptools ];

  nativeBuildInputs = [ writableTmpDirAsHomeHook ];

  dependencies = with python3.pkgs; [
    beautifulsoup4
    html5lib
    inflect
    lxml
    playwright
    psutil
    pypdf
    pyyaml
    requests
    termcolor
    tldextract
    urllib3
  ];

@@ -47,7 +49,7 @@ python3.pkgs.buildPythonApplication (finalAttrs: {
  meta = {
    description = "Tool to discover endpoints, potential parameters, and a target specific wordlist for a given target";
    homepage = "https://github.com/xnl-h4ck3r/xnLinkFinder";
    changelog = "https://github.com/xnl-h4ck3r/xnLinkFinder/blob/${finalAttrs.version}/CHANGELOG.md";
    changelog = "https://github.com/xnl-h4ck3r/xnLinkFinder/blob/${finalAttrs.src.tag}/CHANGELOG.md";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ fab ];
    mainProgram = "xnLinkFinder";