apkid: refactor

authored by Fabian Affolter and committed by GitHub 0776b2dd 08c91690

+15 -18
+15 -18
pkgs/by-name/ap/apkid/package.nix
··· 7 python3.pkgs.buildPythonApplication rec { 8 pname = "apkid"; 9 version = "3.0.0"; 10 - format = "setuptools"; 11 12 src = fetchFromGitHub { 13 owner = "rednaga"; ··· 16 hash = "sha256-/8p2qR1je65k1irXFcCre2e16rhGjcu0+u6RChMYTWQ="; 17 }; 18 19 - propagatedBuildInputs = with python3.pkgs; [ 20 - yara-python 21 - ]; 22 23 - nativeCheckInputs = with python3.pkgs; [ 24 - pytestCheckHook 25 - ]; 26 27 preBuild = '' 28 # Prepare the YARA rules 29 ${python3.interpreter} prep-release.py 30 ''; 31 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 - ''; 37 - 38 - pythonImportsCheck = [ 39 - "apkid" 40 - ]; 41 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 }; 49 }
··· 7 python3.pkgs.buildPythonApplication rec { 8 pname = "apkid"; 9 version = "3.0.0"; 10 + pyproject = true; 11 12 src = fetchFromGitHub { 13 owner = "rednaga"; ··· 16 hash = "sha256-/8p2qR1je65k1irXFcCre2e16rhGjcu0+u6RChMYTWQ="; 17 }; 18 19 + postPatch = '' 20 + # We have dex support enabled in yara-python 21 + substituteInPlace setup.py \ 22 + --replace "yara-python-dex>=1.0.1" "yara-python" 23 + ''; 24 + 25 + build-system = with python3.pkgs; [ setuptools ]; 26 27 + dependencies = with python3.pkgs; [ yara-python ]; 28 + 29 + nativeCheckInputs = with python3.pkgs; [ pytestCheckHook ]; 30 31 preBuild = '' 32 # Prepare the YARA rules 33 ${python3.interpreter} prep-release.py 34 ''; 35 36 + pythonImportsCheck = [ "apkid" ]; 37 38 meta = with lib; { 39 description = "Android Application Identifier"; 40 homepage = "https://github.com/rednaga/APKiD"; 41 + changelog = "https://github.com/rednaga/APKiD/releases/tag/${src.tag}"; 42 + license = licenses.gpl3Only; 43 maintainers = with maintainers; [ fab ]; 44 + mainProgram = "apkid"; 45 }; 46 }