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

Merge pull request #254077 from fabaff/knowsmore

knowsmore: init at 0.1.37
parents 733d5c0d 42699ad0
Loading
Loading
Loading
Loading
+48 −0
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, colorama
, fetchFromGitHub
, pillow
, pytestCheckHook
, pythonOlder
}:

buildPythonPackage rec {
  pname = "ansi2image";
  version = "0.1.4";
  format = "setuptools";

  disabled = pythonOlder "3.8";

  src = fetchFromGitHub {
    owner = "helviojunior";
    repo = "ansi2image";
    rev = "refs/tags/v${version}";
    hash = "sha256-1sPEEWcOzesLQXSeMsUra8ZRSMAKzH6iisOgdhpxhKM=";
  };

  propagatedBuildInputs = [
    colorama
    pillow
  ];

  nativeCheckInputs = [
    pytestCheckHook
  ];

  pythonImportsCheck = [
    "ansi2image"
  ];

  pytestFlagsArray = [
    "tests/tests.py"
  ];

  meta = with lib; {
    description = "Module to convert ANSI text to an image";
    homepage = "https://github.com/helviojunior/ansi2image";
    changelog = "https://github.com/helviojunior/ansi2image/blob/${version}/CHANGELOG";
    license = licenses.gpl3Only;
    maintainers = with maintainers; [ fab ];
  };
}
+55 −0
Original line number Diff line number Diff line
{ lib
, fetchFromGitHub
, python3
}:

python3.pkgs.buildPythonApplication rec {
  pname = "knowsmore";
  version = "0.1.37";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "helviojunior";
    repo = "knowsmore";
    rev = "refs/tags/v${version}";
    hash = "sha256-UxBoWK3L4u9xSQaGGHpzvs/mRlmhF3EqiS/4BYyTKos=";
  };

  propagatedBuildInputs = with python3.pkgs; [
    aioconsole
    ansi2image
    beautifulsoup4
    clint
    colorama
    impacket
    levenshtein
    minikerberos
    neo4j
    numpy
    pypsrp
    requests
    tabulate
    urllib3
    xmltodict
  ];

  nativeCheckInputs = with python3.pkgs; [
    pytestCheckHook
  ];

  pythonImportsCheck = [
    "knowsmore"
  ];

  pytestFlagsArray = [
    "tests/tests*"
  ];

  meta = with lib; {
    description = "Tool for pentesting Microsoft Active Directory";
    homepage = "https://github.com/helviojunior/knowsmore";
    changelog = "https://github.com/helviojunior/knowsmore/releases/tag/v${version}";
    license = licenses.gpl3Only;
    maintainers = with maintainers; [ fab ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -9784,6 +9784,8 @@ with pkgs;
  knockpy = callPackage ../tools/security/knockpy { };
  knowsmore = callPackage ../tools/security/knowsmore { };
  kool = callPackage ../development/tools/misc/kool { };
  kore = callPackage ../development/web/kore {
+2 −0
Original line number Diff line number Diff line
@@ -532,6 +532,8 @@ self: super: with self; {

  ansi2html = callPackage ../development/python-modules/ansi2html { };

  ansi2image = callPackage ../development/python-modules/ansi2image { };

  ansible = callPackage ../development/python-modules/ansible { };

  ansible-compat = callPackage ../development/python-modules/ansible-compat { };