vscode-extensions.yoavbls.pretty-ts-errors: 0.5.4 -> 0.6.1 (#363464)
[NixPkgs.git] / pkgs / by-name / ap / apkid / package.nix
blobeb496bf43ad35edf882ad3790b82a97bd2dfd8ce
2   lib,
3   fetchFromGitHub,
4   python3,
5 }:
7 python3.pkgs.buildPythonApplication rec {
8   pname = "apkid";
9   version = "2.1.5";
10   format = "setuptools";
12   src = fetchFromGitHub {
13     owner = "rednaga";
14     repo = "APKiD";
15     tag = "v${version}";
16     hash = "sha256-yO3k2kT043/KkiCjDnNUlqxX86kQqMZ+CghD+yon3r4=";
17   };
19   propagatedBuildInputs = with python3.pkgs; [
20     yara-python
21   ];
23   nativeCheckInputs = with python3.pkgs; [
24     pytestCheckHook
25   ];
27   preBuild = ''
28     # Prepare the YARA rules
29     ${python3.interpreter} prep-release.py
30   '';
32   postPatch = ''
33     # We have dex support enabled in yara-python
34     substituteInPlace setup.py \
35       --replace "yara-python-dex>=1.0.1" "yara-python"
36   '';
38   pythonImportsCheck = [
39     "apkid"
40   ];
42   meta = with lib; {
43     description = "Android Application Identifier";
44     mainProgram = "apkid";
45     homepage = "https://github.com/rednaga/APKiD";
46     license = with licenses; [ gpl3Only ];
47     maintainers = with maintainers; [ fab ];
48   };