depot/third_party/nixpkgs/pkgs/development/python-modules/pyprof2calltree/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

32 lines
867 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
}:
buildPythonPackage rec {
pname = "pyprof2calltree";
version = "1.4.5";
pyproject = true;
# Fetch from GitHub because the PyPi packaged version does not
# include all test files.
src = fetchFromGitHub {
owner = "pwaller";
repo = "pyprof2calltree";
rev = "refs/tags/v${version}";
hash = "sha256-PrIYpvcoD+zVIoOdcON41JmqzpA5FyRKhI7rqDV8cSo=";
};
build-system = [ setuptools ];
meta = with lib; {
description = "Help visualize profiling data from cProfile with kcachegrind and qcachegrind";
mainProgram = "pyprof2calltree";
homepage = "https://github.com/pwaller/pyprof2calltree";
changelog = "https://github.com/pwaller/pyprof2calltree/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ sfrijters ];
};
}