From 12a146bfde5b92401a5ecab2a51bc83aa8ed3114 Mon Sep 17 00:00:00 2001 From: eyjhb Date: Fri, 6 Dec 2024 16:32:09 +0100 Subject: [PATCH] pythonPackages.frida-python: 16.0.19 -> 16.5.7 --- .../python-modules/frida-python/default.nix | 59 +++++-------------- 1 file changed, 14 insertions(+), 45 deletions(-) diff --git a/pkgs/development/python-modules/frida-python/default.nix b/pkgs/development/python-modules/frida-python/default.nix index 8bef789110cf..bd7b493af68f 100644 --- a/pkgs/development/python-modules/frida-python/default.nix +++ b/pkgs/development/python-modules/frida-python/default.nix @@ -1,67 +1,36 @@ { lib, - stdenv, - fetchurl, fetchPypi, buildPythonPackage, - typing-extensions, - darwin, }: -let - version = "16.0.19"; - format = "setuptools"; - devkit = { - aarch64-darwin = fetchurl { - url = "https://github.com/frida/frida/releases/download/${version}/frida-core-devkit-${version}-macos-arm64.tar.xz"; - hash = "sha256-5VAZnpHQ5wjl7IM96GhIKOfFYHFDKKOoSjN1STna2UA="; - }; - - x86_64-linux = fetchurl { - url = "https://github.com/frida/frida/releases/download/${version}/frida-core-devkit-${version}-linux-x86_64.tar.xz"; - hash = "sha256-yNXNqv8eCbpdQKFShpAh6rUCEuItrOSNNLOjESimPdk="; - }; - }.${stdenv.hostPlatform.system} - or (throw "Unsupported system: ${stdenv.hostPlatform.system}"); - -in buildPythonPackage rec { pname = "frida-python"; - inherit version; + version = "16.5.7"; + format = "wheel"; src = fetchPypi { pname = "frida"; - inherit version; - hash = "sha256-rikIjjn9wA8VL/St/2JJTcueimn+q/URbt9lw/+nalY="; + inherit version format; + hash = "sha256-+2P+Be7xDWBHesqcGupt6gGdUmda0zIp8HkyJqzGgio="; + platform = "manylinux1_x86_64"; + abi = "abi3"; + python = "cp37"; + dist = "cp37"; }; - postPatch = '' - mkdir assets - pushd assets - tar xvf ${devkit} - export FRIDA_CORE_DEVKIT=$PWD - popd - ''; - - env.NIX_LDFLAGS = lib.optionalString stdenv.hostPlatform.isDarwin "-framework AppKit"; - - propagatedBuildInputs = [ typing-extensions ]; - - buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ - darwin.apple_sdk.frameworks.AppKit + pythonImportsCheck = [ + "frida" + "frida._frida" ]; - pythonImportsCheck = [ "frida" ]; - - passthru = { - inherit devkit; - }; - meta = { description = "Dynamic instrumentation toolkit for developers, reverse-engineers, and security researchers (Python bindings)"; homepage = "https://www.frida.re"; license = lib.licenses.wxWindows; maintainers = with lib.maintainers; [ s1341 ]; - platforms = [ "aarch64-darwin" "x86_64-linux" ]; + platforms = [ + "x86_64-linux" + ]; }; }