···1{ stdenv, fetchFromGitHub, autoreconfHook, coreutils, pkgconfig
2# pyflame needs one python version per ABI
3-# are currently supported
4# * 2.6 or 2.7 for 2.x ABI
5# * 3.4 or 3.5 for 3.{4,5} ABI
6# * 3.6 for 3.6+ ABI
7# if you want to disable support for some ABI, make the corresponding argument null
8-, python2, python35, python36
9}:
10stdenv.mkDerivation rec {
11 pname = "pyflame";
12- version = "1.6.7";
13 src = fetchFromGitHub {
14 owner = "uber";
15 repo = "pyflame";
···25 # some tests will fail in the sandbox
26 substituteInPlace tests/test_end_to_end.py \
27 --replace 'skipif(IS_DOCKER' 'skipif(True'
0000000028 '';
2930 doCheck = true;
···1{ stdenv, fetchFromGitHub, autoreconfHook, coreutils, pkgconfig
2# pyflame needs one python version per ABI
3+# are currently supported
4# * 2.6 or 2.7 for 2.x ABI
5# * 3.4 or 3.5 for 3.{4,5} ABI
6# * 3.6 for 3.6+ ABI
7# if you want to disable support for some ABI, make the corresponding argument null
8+, python2, python35, python36, python3
9}:
10stdenv.mkDerivation rec {
11 pname = "pyflame";
12+ version = "1.6.7";
13 src = fetchFromGitHub {
14 owner = "uber";
15 repo = "pyflame";
···25 # some tests will fail in the sandbox
26 substituteInPlace tests/test_end_to_end.py \
27 --replace 'skipif(IS_DOCKER' 'skipif(True'
28+29+ # don't use patchShebangs here to be explicit about the python version
30+ substituteInPlace utils/flame-chart-json \
31+ --replace '#!usr/bin/env python' '#!${python3.interpreter}'
32+ '';
33+34+ postInstall = ''
35+ install -D utils/flame-chart-json $out/bin/flame-chart-json
36 '';
3738 doCheck = true;