nixpkgs/pkgs/development/python-modules/pyprof2calltree/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

26 lines
810 B
Nix

{ lib, buildPythonPackage, fetchFromGitHub }:
buildPythonPackage rec {
pname = "pyprof2calltree";
version = "1.4.5";
format = "setuptools";
# 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";
};
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 ];
};
}