diff --git a/pkgs/tools/security/apkleaks/default.nix b/pkgs/tools/security/apkleaks/default.nix index bc5564cb9fc1..4cd5c926e524 100644 --- a/pkgs/tools/security/apkleaks/default.nix +++ b/pkgs/tools/security/apkleaks/default.nix @@ -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"; };