Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
47 lines
1.1 KiB
Nix
47 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
python3,
|
|
}:
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
pname = "apkid";
|
|
version = "3.0.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "rednaga";
|
|
repo = "APKiD";
|
|
tag = "v${version}";
|
|
hash = "sha256-/8p2qR1je65k1irXFcCre2e16rhGjcu0+u6RChMYTWQ=";
|
|
};
|
|
|
|
postPatch = ''
|
|
# We have dex support enabled in yara-python
|
|
substituteInPlace setup.py \
|
|
--replace "yara-python-dex>=1.0.1" "yara-python"
|
|
'';
|
|
|
|
build-system = with python3.pkgs; [ setuptools ];
|
|
|
|
dependencies = with python3.pkgs; [ yara-python ];
|
|
|
|
nativeCheckInputs = with python3.pkgs; [ pytestCheckHook ];
|
|
|
|
preBuild = ''
|
|
# Prepare the YARA rules
|
|
${python3.interpreter} prep-release.py
|
|
'';
|
|
|
|
pythonImportsCheck = [ "apkid" ];
|
|
|
|
meta = with lib; {
|
|
description = "Android Application Identifier";
|
|
homepage = "https://github.com/rednaga/APKiD";
|
|
changelog = "https://github.com/rednaga/APKiD/releases/tag/${src.tag}";
|
|
license = licenses.gpl3Only;
|
|
maintainers = with maintainers; [ fab ];
|
|
mainProgram = "apkid";
|
|
};
|
|
}
|