1{
2 stdenv,
3 lib,
4 buildPythonPackage,
5 fetchFromGitHub,
6 pythonOlder,
7 setuptools,
8 wheel,
9}:
10
11buildPythonPackage rec {
12 pname = "pyinstrument";
13 version = "4.6.0";
14 format = "pyproject";
15
16 disabled = pythonOlder "3.7";
17
18 src = fetchFromGitHub {
19 owner = "joerick";
20 repo = pname;
21 rev = "refs/tags/v${version}";
22 hash = "sha256-NSE2mZPbKmvlQbBPx0MoqYfAOjmsf9CllX7dxygZfc4=";
23 };
24
25 nativeBuildInputs = [
26 setuptools
27 wheel
28 ];
29
30 # Module import recursion
31 doCheck = false;
32
33 pythonImportsCheck = [ "pyinstrument" ];
34
35 meta = with lib; {
36 description = "Call stack profiler for Python";
37 mainProgram = "pyinstrument";
38 homepage = "https://github.com/joerick/pyinstrument";
39 changelog = "https://github.com/joerick/pyinstrument/releases/tag/v${version}";
40 license = licenses.bsd3;
41 maintainers = with maintainers; [ onny ];
42 };
43}