depot/third_party/nixpkgs/pkgs/development/python-modules/pyinstrument/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

42 lines
874 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
setuptools,
wheel,
}:
buildPythonPackage rec {
pname = "pyinstrument";
version = "4.6.0";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "joerick";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-NSE2mZPbKmvlQbBPx0MoqYfAOjmsf9CllX7dxygZfc4=";
};
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/v${version}";
license = licenses.bsd3;
maintainers = with maintainers; [ onny ];
};
}