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