Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / frida-python / default.nix
blob144d88cc80b828d31798e3b5fccfda50e7697d99
1 { lib, stdenv, fetchurl, fetchPypi, buildPythonPackage, typing-extensions }:
2 let
3   version = "16.0.19";
4   format = "setuptools";
5   devkit = fetchurl {
6     url = "https://github.com/frida/frida/releases/download/${version}/frida-core-devkit-${version}-linux-x86_64.tar.xz";
7     hash = "sha256-yNXNqv8eCbpdQKFShpAh6rUCEuItrOSNNLOjESimPdk=";
8   };
9 in buildPythonPackage rec {
10   pname = "frida-python";
11   inherit version;
13   src = fetchPypi {
14     pname = "frida";
15     inherit version;
16     hash = "sha256-rikIjjn9wA8VL/St/2JJTcueimn+q/URbt9lw/+nalY=";
17   };
19   postPatch = ''
20     mkdir assets
21     pushd assets
22     tar xvf ${devkit}
23     export FRIDA_CORE_DEVKIT=$PWD
24     popd
25   '';
27   propagatedBuildInputs = [ typing-extensions ];
29   pythonImportsCheck = [ "frida" ];
31   passthru = { inherit devkit; };
33   meta = {
34     description = "Dynamic instrumentation toolkit for developers, reverse-engineers, and security researchers (Python bindings)";
35     homepage = "https://www.frida.re";
36     license = lib.licenses.wxWindows;
37     maintainers = with lib.maintainers; [ s1341 ];
38     platforms = [ "x86_64-linux" ];
39   };