Files
nixpkgs/pkgs/development/python-modules/pyinstrument/default.nix
2025-08-19 01:49:51 +00:00

43 lines
872 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
setuptools,
wheel,
}:
buildPythonPackage rec {
pname = "pyinstrument";
version = "5.1.1";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "joerick";
repo = "pyinstrument";
tag = "v${version}";
hash = "sha256-omQLUVgHbyz6YzLQ/7zU0f1R5xFU7EVGnwXohcuuP+o=";
};
nativeBuildInputs = [
setuptools
wheel
];
# Module import recursion
doCheck = false;
pythonImportsCheck = [ "pyinstrument" ];
meta = with lib; {
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 = licenses.bsd3;
maintainers = with maintainers; [ onny ];
};
}