biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / development / tools / apkid / default.nix
blobd54a6564908a055a3fdf443a39c881290f042790
1 { lib
2 , fetchFromGitHub
3 , python3
4 }:
6 python3.pkgs.buildPythonApplication rec {
7   pname = "apkid";
8   version = "2.1.5";
9   format = "setuptools";
11   src = fetchFromGitHub {
12     owner = "rednaga";
13     repo = "APKiD";
14     rev = "refs/tags/v${version}";
15     hash = "sha256-yO3k2kT043/KkiCjDnNUlqxX86kQqMZ+CghD+yon3r4=";
16   };
18   propagatedBuildInputs = with python3.pkgs; [
19     yara-python
20   ];
22   nativeCheckInputs = with python3.pkgs; [
23     pytestCheckHook
24   ];
26   preBuild = ''
27     # Prepare the YARA rules
28     ${python3.interpreter} prep-release.py
29   '';
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   '';
37   pythonImportsCheck = [
38     "apkid"
39   ];
41   meta = with lib; {
42     description = "Android Application Identifier";
43     mainProgram = "apkid";
44     homepage = "https://github.com/rednaga/APKiD";
45     license = with licenses; [ gpl3Only ];
46     maintainers = with maintainers; [ fab ];
47   };