nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 67 lines 1.6 kB view raw
1{ 2 lib, 3 fetchPypi, 4 stdenvNoCC, 5 buildPythonPackage, 6}: 7let 8 version = "17.5.1"; 9 format = "wheel"; 10 inherit (stdenvNoCC.hostPlatform) system; 11 12 # https://pypi.org/project/frida/#files 13 pypiMeta = 14 { 15 x86_64-linux = { 16 hash = "sha256-gUYHLjKLoUI/aXzB+aU5yvfmObcA9hctkBqLgZxHvi0="; 17 platform = "manylinux1_x86_64"; 18 }; 19 aarch64-linux = { 20 hash = "sha256-zU9mmxU8WWs2dG3lHnSiY0oTDN2tUFTMolV22SHtBbc="; 21 platform = "manylinux2014_aarch64"; 22 }; 23 x86_64-darwin = { 24 hash = "sha256-hgsUQHS/DCVXSMm8ViC4zd/UVvEqYH7uwedv4ag48Mc="; 25 platform = "macosx_10_13_x86_64"; 26 }; 27 aarch64-darwin = { 28 hash = "sha256-HgjAVeACzWis0WFgf/D40GAqMbqSmZ8XBilgID3Yk5A="; 29 platform = "macosx_11_0_arm64"; 30 }; 31 } 32 .${system} or (throw "Unsupported system: ${system}"); 33in 34buildPythonPackage { 35 pname = "frida-python"; 36 inherit version format; 37 38 src = fetchPypi { 39 pname = "frida"; 40 inherit version format; 41 inherit (pypiMeta) hash platform; 42 abi = "abi3"; 43 python = "cp37"; 44 dist = "cp37"; 45 }; 46 47 pythonImportsCheck = [ 48 "frida" 49 "frida._frida" 50 ]; 51 52 meta = { 53 description = "Dynamic instrumentation toolkit for developers, reverse-engineers, and security researchers (Python bindings)"; 54 homepage = "https://www.frida.re"; 55 license = with lib.licenses; [ 56 lgpl2Plus 57 wxWindowsException31 58 ]; 59 maintainers = with lib.maintainers; [ s1341 ]; 60 platforms = [ 61 "x86_64-linux" 62 "aarch64-linux" 63 "x86_64-darwin" 64 "aarch64-darwin" 65 ]; 66 }; 67}