about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/pyinstrument/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/pyinstrument/default.nix')
-rw-r--r--nixpkgs/pkgs/development/python-modules/pyinstrument/default.nix16
1 files changed, 14 insertions, 2 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/pyinstrument/default.nix b/nixpkgs/pkgs/development/python-modules/pyinstrument/default.nix
index 9dfe3b82cb55..4cc60efbc637 100644
--- a/nixpkgs/pkgs/development/python-modules/pyinstrument/default.nix
+++ b/nixpkgs/pkgs/development/python-modules/pyinstrument/default.nix
@@ -2,19 +2,30 @@
 , lib
 , buildPythonPackage
 , fetchFromGitHub
+, pythonOlder
+, setuptools
+, wheel
 }:
 
 buildPythonPackage rec {
   pname = "pyinstrument";
-  version = "4.5.0";
+  version = "4.5.2";
+  format = "pyproject";
+
+  disabled = pythonOlder "3.7";
 
   src = fetchFromGitHub {
     owner = "joerick";
     repo = pname;
     rev = "refs/tags/v${version}";
-    hash = "sha256-HvPapa3b9/Wc4ClaMOmCAIeHS7H4V9aCR9JCDol2ElE=";
+    hash = "sha256-VL/JzgMxn5zABfmol+5oofR1RjyxTdzvUi6JnwsSFao=";
   };
 
+  nativeBuildInputs = [
+    setuptools
+    wheel
+  ];
+
   # Module import recursion
   doCheck = false;
 
@@ -25,6 +36,7 @@ buildPythonPackage rec {
   meta = with lib; {
     description = "Call stack profiler for Python";
     homepage = "https://github.com/joerick/pyinstrument";
+    changelog = "https://github.com/joerick/pyinstrument/releases/tag/v${version}";
     license = licenses.bsd3;
     maintainers = with maintainers; [ onny ];
   };