lol
at 23.11-beta 47 lines 978 B view raw
1{ lib 2, fetchFromGitHub 3, python3 4}: 5 6python3.pkgs.buildPythonApplication rec { 7 pname = "apkid"; 8 version = "2.1.5"; 9 format = "setuptools"; 10 11 src = fetchFromGitHub { 12 owner = "rednaga"; 13 repo = "APKiD"; 14 rev = "refs/tags/v${version}"; 15 hash = "sha256-yO3k2kT043/KkiCjDnNUlqxX86kQqMZ+CghD+yon3r4="; 16 }; 17 18 propagatedBuildInputs = with python3.pkgs; [ 19 yara-python 20 ]; 21 22 nativeCheckInputs = with python3.pkgs; [ 23 pytestCheckHook 24 ]; 25 26 preBuild = '' 27 # Prepare the YARA rules 28 ${python3.interpreter} prep-release.py 29 ''; 30 31 postPatch = '' 32 # We have dex support enabled in yara-python 33 substituteInPlace setup.py \ 34 --replace "yara-python-dex>=1.0.1" "yara-python" 35 ''; 36 37 pythonImportsCheck = [ 38 "apkid" 39 ]; 40 41 meta = with lib; { 42 description = "Android Application Identifier"; 43 homepage = "https://github.com/rednaga/APKiD"; 44 license = with licenses; [ gpl3Only ]; 45 maintainers = with maintainers; [ fab ]; 46 }; 47}