{ lib, buildPythonPackage, fetchFromGitHub, setuptools, wheel, }: buildPythonPackage rec { pname = "pyinstrument"; version = "5.1.2"; pyproject = true; src = fetchFromGitHub { owner = "joerick"; repo = "pyinstrument"; tag = "v${version}"; hash = "sha256-OP4B2E3le67oT5nV8OmOFQvkrEog5qoq4pihRpXIxcY="; }; nativeBuildInputs = [ setuptools wheel ]; # Module import recursion doCheck = false; pythonImportsCheck = [ "pyinstrument" ]; meta = { description = "Call stack profiler for Python"; mainProgram = "pyinstrument"; homepage = "https://github.com/joerick/pyinstrument"; changelog = "https://github.com/joerick/pyinstrument/releases/tag/${src.tag}"; license = lib.licenses.bsd3; maintainers = with lib.maintainers; [ onny ]; }; }