apkid: refactor

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

+15 -18
+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 - format = "setuptools"; 10 + pyproject = true; 11 11 12 12 src = fetchFromGitHub { 13 13 owner = "rednaga"; ··· 16 16 hash = "sha256-/8p2qR1je65k1irXFcCre2e16rhGjcu0+u6RChMYTWQ="; 17 17 }; 18 18 19 - propagatedBuildInputs = with python3.pkgs; [ 20 - yara-python 21 - ]; 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 ]; 22 26 23 - nativeCheckInputs = with python3.pkgs; [ 24 - pytestCheckHook 25 - ]; 27 + dependencies = with python3.pkgs; [ yara-python ]; 28 + 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 - 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 - ]; 36 + pythonImportsCheck = [ "apkid" ]; 41 37 42 38 meta = with lib; { 43 39 description = "Android Application Identifier"; 44 - mainProgram = "apkid"; 45 40 homepage = "https://github.com/rednaga/APKiD"; 46 - license = with licenses; [ gpl3Only ]; 41 + changelog = "https://github.com/rednaga/APKiD/releases/tag/${src.tag}"; 42 + license = licenses.gpl3Only; 47 43 maintainers = with maintainers; [ fab ]; 44 + mainProgram = "apkid"; 48 45 }; 49 46 }