Commit 25618a3a authored by Fabian Affolter's avatar Fabian Affolter
Browse files

apkleaks: refactor

parent 8c8c6886
Loading
Loading
Loading
Loading
+13 −7
Original line number Diff line number Diff line
@@ -7,17 +7,20 @@
python3.pkgs.buildPythonApplication rec {
  pname = "apkleaks";
  version = "2.6.2";

  disabled = python3.pythonOlder "3.6";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "dwisiswant0";
    repo = pname;
    repo = "apkleaks";
    rev = "refs/tags/v${version}";
    sha256 = "sha256-a7zOowvhV9H91RwNDImN2+ecixY8g3WUotlBQVdmLgA=";
    hash = "sha256-a7zOowvhV9H91RwNDImN2+ecixY8g3WUotlBQVdmLgA=";
  };

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

  dependencies = with python3.pkgs; [
    jadx
    pyaxmlparser
    setuptools
@@ -26,12 +29,15 @@ python3.pkgs.buildPythonApplication rec {
  # Project has no tests
  doCheck = false;

  pythonImportsCheck = [ "apkleaks" ];
  pythonImportsCheck = [
    "apkleaks"
  ];

  meta = with lib; {
    description = "Scanning APK file for URIs, endpoints and secrets";
    homepage = "https://github.com/dwisiswant0/apkleaks";
    license = with licenses; [ asl20 ];
    changelog = "https://github.com/dwisiswant0/apkleaks/releases/tag/v${version}";
    license = licenses.asl20;
    maintainers = with maintainers; [ fab ];
    mainProgram = "apkleaks";
  };