From e017f76603d17b0a79b980769f603a6d1c5c4bc6 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 1 Sep 2023 12:50:59 +0200 Subject: [PATCH 1/4] python311Packages.pyinstrument: 4.5.0 -> 4.5.2 Diff: https://github.com/joerick/pyinstrument/compare/refs/tags/v4.5.0...v4.5.2 --- pkgs/development/python-modules/pyinstrument/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/pyinstrument/default.nix b/pkgs/development/python-modules/pyinstrument/default.nix index 9dfe3b82cb55..52ab493deb78 100644 --- a/pkgs/development/python-modules/pyinstrument/default.nix +++ b/pkgs/development/python-modules/pyinstrument/default.nix @@ -6,13 +6,13 @@ buildPythonPackage rec { pname = "pyinstrument"; - version = "4.5.0"; + version = "4.5.2"; src = fetchFromGitHub { owner = "joerick"; repo = pname; rev = "refs/tags/v${version}"; - hash = "sha256-HvPapa3b9/Wc4ClaMOmCAIeHS7H4V9aCR9JCDol2ElE="; + hash = "sha256-VL/JzgMxn5zABfmol+5oofR1RjyxTdzvUi6JnwsSFao="; }; # Module import recursion From cb9866da8145994c4514565513f2a68fe061c2dd Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 1 Sep 2023 14:14:24 +0200 Subject: [PATCH 2/4] python311Packages.pyinstrument: add changelog to meta --- pkgs/development/python-modules/pyinstrument/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/development/python-modules/pyinstrument/default.nix b/pkgs/development/python-modules/pyinstrument/default.nix index 52ab493deb78..ad560fda112c 100644 --- a/pkgs/development/python-modules/pyinstrument/default.nix +++ b/pkgs/development/python-modules/pyinstrument/default.nix @@ -25,6 +25,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 ]; }; From ad966e79724f461cfa3b28aa7463525283f2a20d Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 1 Sep 2023 14:15:53 +0200 Subject: [PATCH 3/4] python311Packages.pyinstrument: disable on unsupported Python releases --- pkgs/development/python-modules/pyinstrument/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/development/python-modules/pyinstrument/default.nix b/pkgs/development/python-modules/pyinstrument/default.nix index ad560fda112c..ed83f9e138e4 100644 --- a/pkgs/development/python-modules/pyinstrument/default.nix +++ b/pkgs/development/python-modules/pyinstrument/default.nix @@ -2,12 +2,15 @@ , lib , buildPythonPackage , fetchFromGitHub +, pythonOlder }: buildPythonPackage rec { pname = "pyinstrument"; version = "4.5.2"; + disabled = pythonOlder "3.7"; + src = fetchFromGitHub { owner = "joerick"; repo = pname; From 024b3b075bcd88271474a0de5ff6f6b0e945b3d2 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 1 Sep 2023 14:18:19 +0200 Subject: [PATCH 4/4] python311Packages.pyinstrument: add format --- pkgs/development/python-modules/pyinstrument/default.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/development/python-modules/pyinstrument/default.nix b/pkgs/development/python-modules/pyinstrument/default.nix index ed83f9e138e4..4cc60efbc637 100644 --- a/pkgs/development/python-modules/pyinstrument/default.nix +++ b/pkgs/development/python-modules/pyinstrument/default.nix @@ -3,11 +3,14 @@ , buildPythonPackage , fetchFromGitHub , pythonOlder +, setuptools +, wheel }: buildPythonPackage rec { pname = "pyinstrument"; version = "4.5.2"; + format = "pyproject"; disabled = pythonOlder "3.7"; @@ -18,6 +21,11 @@ buildPythonPackage rec { hash = "sha256-VL/JzgMxn5zABfmol+5oofR1RjyxTdzvUi6JnwsSFao="; }; + nativeBuildInputs = [ + setuptools + wheel + ]; + # Module import recursion doCheck = false;