apkid: refactor
This commit is contained in:
parent
08c916906d
commit
0776b2ddf1
@ -7,7 +7,7 @@
|
|||||||
python3.pkgs.buildPythonApplication rec {
|
python3.pkgs.buildPythonApplication rec {
|
||||||
pname = "apkid";
|
pname = "apkid";
|
||||||
version = "3.0.0";
|
version = "3.0.0";
|
||||||
format = "setuptools";
|
pyproject = true;
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "rednaga";
|
owner = "rednaga";
|
||||||
@ -16,34 +16,31 @@ python3.pkgs.buildPythonApplication rec {
|
|||||||
hash = "sha256-/8p2qR1je65k1irXFcCre2e16rhGjcu0+u6RChMYTWQ=";
|
hash = "sha256-/8p2qR1je65k1irXFcCre2e16rhGjcu0+u6RChMYTWQ=";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = with python3.pkgs; [
|
|
||||||
yara-python
|
|
||||||
];
|
|
||||||
|
|
||||||
nativeCheckInputs = with python3.pkgs; [
|
|
||||||
pytestCheckHook
|
|
||||||
];
|
|
||||||
|
|
||||||
preBuild = ''
|
|
||||||
# Prepare the YARA rules
|
|
||||||
${python3.interpreter} prep-release.py
|
|
||||||
'';
|
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
# We have dex support enabled in yara-python
|
# We have dex support enabled in yara-python
|
||||||
substituteInPlace setup.py \
|
substituteInPlace setup.py \
|
||||||
--replace "yara-python-dex>=1.0.1" "yara-python"
|
--replace "yara-python-dex>=1.0.1" "yara-python"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
pythonImportsCheck = [
|
build-system = with python3.pkgs; [ setuptools ];
|
||||||
"apkid"
|
|
||||||
];
|
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; {
|
meta = with lib; {
|
||||||
description = "Android Application Identifier";
|
description = "Android Application Identifier";
|
||||||
mainProgram = "apkid";
|
|
||||||
homepage = "https://github.com/rednaga/APKiD";
|
homepage = "https://github.com/rednaga/APKiD";
|
||||||
license = with licenses; [ gpl3Only ];
|
changelog = "https://github.com/rednaga/APKiD/releases/tag/${src.tag}";
|
||||||
|
license = licenses.gpl3Only;
|
||||||
maintainers = with maintainers; [ fab ];
|
maintainers = with maintainers; [ fab ];
|
||||||
|
mainProgram = "apkid";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user