Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
52 lines
1.1 KiB
Nix
52 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
libunwind,
|
|
python3,
|
|
rustPlatform,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "py-spy";
|
|
version = "0.4.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "benfred";
|
|
repo = "py-spy";
|
|
rev = "v${version}";
|
|
hash = "sha256-T96F8xgB9HRwuvDLXi6+lfi8za/iNn1NAbG4AIpE0V0=";
|
|
};
|
|
|
|
cargoHash = "sha256-velwX7lcNQvwg3VAUTbgsOPLlA5fAcPiPvczrBBsMvs=";
|
|
|
|
buildFeatures = [ "unwind" ];
|
|
|
|
nativeBuildInputs = [
|
|
rustPlatform.bindgenHook
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
python3
|
|
];
|
|
|
|
env.NIX_CFLAGS_COMPILE = "-L${libunwind}/lib";
|
|
|
|
checkFlags = [
|
|
# assertion `left == right` failed
|
|
"--skip=test_negative_linenumber_increment"
|
|
];
|
|
|
|
meta = {
|
|
description = "Sampling profiler for Python programs";
|
|
mainProgram = "py-spy";
|
|
homepage = "https://github.com/benfred/py-spy";
|
|
changelog = "https://github.com/benfred/py-spy/releases/tag/v${version}";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ lnl7 ];
|
|
platforms = lib.platforms.linux;
|
|
# https://github.com/benfred/py-spy/pull/330
|
|
broken = stdenv.hostPlatform.isAarch64;
|
|
};
|
|
}
|