···11{ stdenv, fetchFromGitHub, autoreconfHook, coreutils, pkgconfig
22# pyflame needs one python version per ABI
33-# are currently supported
33+# are currently supported
44# * 2.6 or 2.7 for 2.x ABI
55# * 3.4 or 3.5 for 3.{4,5} ABI
66# * 3.6 for 3.6+ ABI
77# if you want to disable support for some ABI, make the corresponding argument null
88-, python2, python35, python36
88+, python2, python35, python36, python3
99}:
1010stdenv.mkDerivation rec {
1111 pname = "pyflame";
1212- version = "1.6.7";
1212+ version = "1.6.7";
1313 src = fetchFromGitHub {
1414 owner = "uber";
1515 repo = "pyflame";
···2525 # some tests will fail in the sandbox
2626 substituteInPlace tests/test_end_to_end.py \
2727 --replace 'skipif(IS_DOCKER' 'skipif(True'
2828+2929+ # don't use patchShebangs here to be explicit about the python version
3030+ substituteInPlace utils/flame-chart-json \
3131+ --replace '#!usr/bin/env python' '#!${python3.interpreter}'
3232+ '';
3333+3434+ postInstall = ''
3535+ install -D utils/flame-chart-json $out/bin/flame-chart-json
2836 '';
29373038 doCheck = true;