tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
apkid: refactor
authored by
Fabian Affolter
and committed by
GitHub
9 months ago
0776b2dd
08c91690
+15
-18
1 changed file
expand all
collapse all
unified
split
pkgs
by-name
ap
apkid
package.nix
+15
-18
pkgs/by-name/ap/apkid/package.nix
···
7
7
python3.pkgs.buildPythonApplication rec {
8
8
pname = "apkid";
9
9
version = "3.0.0";
10
10
-
format = "setuptools";
10
10
+
pyproject = true;
11
11
12
12
src = fetchFromGitHub {
13
13
owner = "rednaga";
···
16
16
hash = "sha256-/8p2qR1je65k1irXFcCre2e16rhGjcu0+u6RChMYTWQ=";
17
17
};
18
18
19
19
-
propagatedBuildInputs = with python3.pkgs; [
20
20
-
yara-python
21
21
-
];
19
19
+
postPatch = ''
20
20
+
# We have dex support enabled in yara-python
21
21
+
substituteInPlace setup.py \
22
22
+
--replace "yara-python-dex>=1.0.1" "yara-python"
23
23
+
'';
24
24
+
25
25
+
build-system = with python3.pkgs; [ setuptools ];
22
26
23
23
-
nativeCheckInputs = with python3.pkgs; [
24
24
-
pytestCheckHook
25
25
-
];
27
27
+
dependencies = with python3.pkgs; [ yara-python ];
28
28
+
29
29
+
nativeCheckInputs = with python3.pkgs; [ pytestCheckHook ];
26
30
27
31
preBuild = ''
28
32
# Prepare the YARA rules
29
33
${python3.interpreter} prep-release.py
30
34
'';
31
35
32
32
-
postPatch = ''
33
33
-
# We have dex support enabled in yara-python
34
34
-
substituteInPlace setup.py \
35
35
-
--replace "yara-python-dex>=1.0.1" "yara-python"
36
36
-
'';
37
37
-
38
38
-
pythonImportsCheck = [
39
39
-
"apkid"
40
40
-
];
36
36
+
pythonImportsCheck = [ "apkid" ];
41
37
42
38
meta = with lib; {
43
39
description = "Android Application Identifier";
44
44
-
mainProgram = "apkid";
45
40
homepage = "https://github.com/rednaga/APKiD";
46
46
-
license = with licenses; [ gpl3Only ];
41
41
+
changelog = "https://github.com/rednaga/APKiD/releases/tag/${src.tag}";
42
42
+
license = licenses.gpl3Only;
47
43
maintainers = with maintainers; [ fab ];
44
44
+
mainProgram = "apkid";
48
45
};
49
46
}