10 rustPlatform.buildRustPackage rec {
14 src = fetchFromGitHub {
17 rev = "refs/tags/v${version}";
18 hash = "sha256-NciyzKiDKIMeuHhTjzmHIc3dYW4AniuCNjZugm4hMss=";
21 cargoHash = "sha256-nm+44YWSJOOg9a9d8b3APXW50ThV3iA2C/QsJMttscE=";
23 # error: linker `arm-linux-gnueabihf-gcc` not found
29 rustPlatform.bindgenHook
36 buildInputs = lib.optionals (stdenv.isDarwin && stdenv.isx86_64) [
37 # Pull a header that contains a definition of proc_pid_rusage().
38 darwin.apple_sdk_11_0.Libsystem
41 env.NIX_CFLAGS_COMPILE = "-L${libunwind}/lib";
44 # thread 'python_data_access::tests::test_copy_string' panicked at 'called `Result::unwrap()` on an `Err`
45 "--skip=python_data_access::tests::test_copy_string"
46 ] ++ lib.optionals (stdenv.hostPlatform.system == "x86_64-linux") [
47 # panicked at 'called `Result::unwrap()` on an `Err` value: failed to get os threadid
48 "--skip=test_thread_reuse"
52 description = "Sampling profiler for Python programs";
53 mainProgram = "py-spy";
54 homepage = "https://github.com/benfred/py-spy";
55 changelog = "https://github.com/benfred/py-spy/releases/tag/v${version}";
56 license = licenses.mit;
57 maintainers = with maintainers; [ lnl7 ];