Unverified Commit c3802712 authored by Stefan Frijters's avatar Stefan Frijters
Browse files

python3Packages.pyprof2calltree: refactor

parent b08b6446
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";