Skip to content

Commit

Permalink
python312Packages.scalene: 1.5.49 -> 1.5.51
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahec committed Feb 1, 2025
1 parent b1b5706 commit d11cf17
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions pkgs/development/python-modules/scalene/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down Expand Up @@ -109,5 +109,11 @@ buildPythonPackage rec {
mainProgram = "scalene";
license = licenses.asl20;
maintainers = with maintainers; [ sarahec ];
platforms = [ "x86_64-linux" ];
# The scalene build script assumes that all linux is x86_64 and
# 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
# and that fails.
badPlatforms = [ "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ];
};
}

0 comments on commit d11cf17

Please sign in to comment.