Unverified Commit 5cf8ea53 authored by Peder Bergebakken Sundt's avatar Peder Bergebakken Sundt Committed by GitHub
Browse files

Merge pull request #312276 from SFrijters/pyprof2calltree-refactor

python3Packages.pyprof2calltree: refactor
parents d3fe9531 c3802712
Loading
Loading
Loading
Loading
+12 −4
Original line number Diff line number Diff line
{ 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";