Merge pull request #312276 from SFrijters/pyprof2calltree-refactor

python3Packages.pyprof2calltree: refactor
This commit is contained in:
Peder Bergebakken Sundt
2024-05-22 01:23:02 +02:00
committed by GitHub
@@ -1,19 +1,27 @@
{ lib, buildPythonPackage, fetchFromGitHub }:
{ lib
, buildPythonPackage
, fetchFromGitHub
, setuptools
}:
buildPythonPackage rec {
pname = "pyprof2calltree";
version = "1.4.5";
format = "setuptools";
pyproject = true;
# Fetch from GitHub because the PyPi packaged version does not
# include all test files.
src = fetchFromGitHub {
owner = "pwaller";
repo = "pyprof2calltree";
rev = "v" + version;
sha256 = "0akighssiswfhi5285rrj37am6flg3ip17c34bayq3r8yyk1iciy";
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";