1{ stdenv 2, lib 3, buildPythonPackage 4, fetchFromGitHub 5, pythonOlder 6, setuptools 7, wheel 8}: 9 10buildPythonPackage rec { 11 pname = "pyinstrument"; 12 version = "4.6.0"; 13 format = "pyproject"; 14 15 disabled = pythonOlder "3.7"; 16 17 src = fetchFromGitHub { 18 owner = "joerick"; 19 repo = pname; 20 rev = "refs/tags/v${version}"; 21 hash = "sha256-NSE2mZPbKmvlQbBPx0MoqYfAOjmsf9CllX7dxygZfc4="; 22 }; 23 24 nativeBuildInputs = [ 25 setuptools 26 wheel 27 ]; 28 29 # Module import recursion 30 doCheck = false; 31 32 pythonImportsCheck = [ 33 "pyinstrument" 34 ]; 35 36 meta = with lib; { 37 description = "Call stack profiler for Python"; 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}