From c3802712feaaf15c79c948d5559633fe95e41891 Mon Sep 17 00:00:00 2001 From: Stefan Frijters Date: Thu, 16 May 2024 19:55:01 +0200 Subject: [PATCH] python3Packages.pyprof2calltree: refactor --- .../python-modules/pyprof2calltree/default.nix | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/pyprof2calltree/default.nix b/pkgs/development/python-modules/pyprof2calltree/default.nix index db979ae4297e..deab3b909290 100644 --- a/pkgs/development/python-modules/pyprof2calltree/default.nix +++ b/pkgs/development/python-modules/pyprof2calltree/default.nix @@ -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";