From e5666a0ae9496a6b590387905838250d85f31abf Mon Sep 17 00:00:00 2001 From: Sarah Clark Date: Wed, 22 Jan 2025 13:10:56 -0800 Subject: [PATCH] python312Packages.scalene: 1.5.49 -> 1.5.51 --- .../python-modules/scalene/default.nix | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/scalene/default.nix b/pkgs/development/python-modules/scalene/default.nix index b03c0f041e2f..a9a3aa22ef80 100644 --- a/pkgs/development/python-modules/scalene/default.nix +++ b/pkgs/development/python-modules/scalene/default.nix @@ -31,22 +31,22 @@ let owner = "mpaland"; repo = "printf"; name = "printf"; - rev = "v4.0.0"; + tag = "v4.0.0"; sha256 = "sha256-tgLJNJw/dJGQMwCmfkWNBvHB76xZVyyfVVplq7aSJnI="; }; in buildPythonPackage rec { pname = "scalene"; - version = "1.5.49"; + version = "1.5.51"; pyproject = true; disabled = pythonOlder "3.9"; src = fetchFromGitHub { owner = "plasma-umass"; repo = "scalene"; - rev = "v${version}"; - hash = "sha256-Ivce90+W9NBMQjebj3zCB5eqDJydT8OTPYy4fjbybgI="; + tag = "v${version}"; + hash = "sha256-507auU1uy3StmDWruwd/sgJDpV1WhbneSj/bTxUuAN0="; }; patches = [ @@ -109,5 +109,15 @@ buildPythonPackage rec { mainProgram = "scalene"; license = licenses.asl20; maintainers = with maintainers; [ sarahec ]; + badPlatforms = [ + # The scalene doesn't seem to account for arm64 linux + "aarch64-linux" + + # On darwin, builds 1) assume aarch64 and 2) mistakenly compile one part as + # x86 and the other as arm64 then tries to link them into a single binary + # which fails. + "x86_64-darwin" + "aarch64-darwin" + ]; }; }