diff options
| author | s1341 <github@shmarya.net> | 2023-06-08 14:52:17 +0300 |
|---|---|---|
| committer | s1341 <github@shmarya.net> | 2023-06-08 14:52:17 +0300 |
| commit | d5994dc91c226cc7ca9e869bad464805cf3d65c0 (patch) | |
| tree | 239d44ba8ef7daace85728e8876337184e74a853 /pkgs/development/python-modules/frida-python | |
| parent | 507ff392516c1885e55cb9a5c42b1966932d503b (diff) | |
python3Packages.frida-python: init at 16.0.19
Diffstat (limited to 'pkgs/development/python-modules/frida-python')
| -rw-r--r-- | pkgs/development/python-modules/frida-python/default.nix | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/frida-python/default.nix b/pkgs/development/python-modules/frida-python/default.nix new file mode 100644 index 000000000000..11be528b4055 --- /dev/null +++ b/pkgs/development/python-modules/frida-python/default.nix @@ -0,0 +1,39 @@ +{ lib, stdenv, fetchurl, fetchPypi, buildPythonPackage, typing-extensions }: +let + version = "16.0.19"; + devkit = fetchurl { + url = "https://github.com/frida/frida/releases/download/${version}/frida-core-devkit-${version}-linux-x86_64.tar.xz"; + hash = "sha256-yNXNqv8eCbpdQKFShpAh6rUCEuItrOSNNLOjESimPdk="; + }; +in buildPythonPackage rec { + pname = "frida-python"; + inherit version; + + src = fetchPypi { + pname = "frida"; + inherit version; + hash = "sha256-rikIjjn9wA8VL/St/2JJTcueimn+q/URbt9lw/+nalY="; + }; + + postPatch = '' + mkdir assets + pushd assets + tar xvf ${devkit} + export FRIDA_CORE_DEVKIT=$PWD + popd + ''; + + propagatedBuildInputs = [ typing-extensions ]; + + 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 = [ "x86_64-linux" ]; + }; +} |
