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

Merge pull request #320784 from fabaff/conkeyscan

conkeyscan: init at 1.0.0
parents c2132a15 bf47ebf0
Loading
Loading
Loading
Loading
+50 −0
Original line number Diff line number Diff line
{
  lib,
  python3,
  fetchFromGitHub,
}:

python3.pkgs.buildPythonApplication rec {
  pname = "conkeyscan";
  version = "1.0.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "CompassSecurity";
    repo = "conkeyscan";
    rev = "refs/tags/${version}";
    hash = "sha256-F5lYpETzv03O9I4vi4qnLgQLvBlv8bLtJQArxliO8JI=";
  };

  postPatch = ''
    substituteInPlace setup.py \
      --replace-fail "{{VERSION_PLACEHOLDER}}" "${version}"
  '';

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

  dependencies = with python3.pkgs; [
    atlassian-python-api
    beautifulsoup4
    clize
    loguru
    pysocks
    random-user-agent
    readchar
    requests-ratelimiter
  ];

  # Project has no tests
  doCheck = false;

  pythonImportsCheck = [ "conkeyscan" ];

  meta = with lib; {
    description = "Tool to scan Confluence for keywords";
    homepage = "https://github.com/CompassSecurity/conkeyscan";
    changelog = "https://github.com/CompassSecurity/conkeyscan/releases/tag/${version}";
    license = licenses.mit;
    maintainers = with maintainers; [ fab ];
    mainProgram = "conkeyscan";
  };
}
+36 −0
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  pythonOlder,
}:

buildPythonPackage rec {
  pname = "random-user-agent";
  version = "1.0.1-unstable-2018-12-26";
  pyproject = true;

  disabled = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "Luqman-Ud-Din";
    repo = "random_user_agent";
    rev = "9547a1d93558c5838f734357c695fee92be905f7";
    hash = "sha256-BkMx7N8O9I4rD8lvpoyXTZbZDsoozIpYUQh+zkLQ7Uc=";
  };

  build-system = [ setuptools ];

  # Module has no tests
  doCheck = false;

  pythonImportsCheck = [ "random_user_agent" ];

  meta = with lib; {
    description = "Module to get list of user agents based on filters";
    homepage = "https://github.com/Luqman-Ud-Din/random_user_agent";
    license = licenses.mit;
    maintainers = with maintainers; [ fab ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -13109,6 +13109,8 @@ self: super: with self; {
  ramlfications = callPackage ../development/python-modules/ramlfications { };
  random-user-agent = callPackage ../development/python-modules/random-user-agent { };
  random2 = callPackage ../development/python-modules/random2 { };
  randomfiletree = callPackage ../development/python-modules/randomfiletree { };