From cf6c2d61741d4ab17e1713ef61aa3dcb49211eeb Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Wed, 4 Dec 2024 13:21:31 +0100 Subject: [PATCH] python312Packages.ray: 2.39.0 -> 2.40.0 Changelog: https://github.com/ray-project/ray/releases/tag/ray-2.40.0 --- .../python-modules/ray/binary-hashes.nix | 11 -------- .../python-modules/ray/default.nix | 26 ++++++++++--------- 2 files changed, 14 insertions(+), 23 deletions(-) delete mode 100644 pkgs/development/python-modules/ray/binary-hashes.nix diff --git a/pkgs/development/python-modules/ray/binary-hashes.nix b/pkgs/development/python-modules/ray/binary-hashes.nix deleted file mode 100644 index 6afd032a2006..000000000000 --- a/pkgs/development/python-modules/ray/binary-hashes.nix +++ /dev/null @@ -1,11 +0,0 @@ -{ - cp310 = { - hash = "sha256-Ypj7mBzQ+oYH8ZF96yeSWrit1IxgulvQ9s9A1MxdrOQ="; - }; - cp311 = { - hash = "sha256-Ia7hJ64anPYZMAGrQdJVG8yBMxujtxltAA8W0Q8VxwU="; - }; - cp312 = { - hash = "sha256-AWkw5rp0uRtAEXpksk97//SKangPI9KwZKej9DvE4aI="; - }; -} diff --git a/pkgs/development/python-modules/ray/default.nix b/pkgs/development/python-modules/ray/default.nix index e193d25e2f1c..7e72996bd9dd 100644 --- a/pkgs/development/python-modules/ray/default.nix +++ b/pkgs/development/python-modules/ray/default.nix @@ -64,7 +64,7 @@ let pname = "ray"; - version = "2.39.0"; + version = "2.40.0"; in buildPythonPackage rec { inherit pname version; @@ -75,18 +75,20 @@ buildPythonPackage rec { src = let pyShortVersion = "cp${builtins.replaceStrings [ "." ] [ "" ] python.pythonVersion}"; - binary-hash = (import ./binary-hashes.nix)."${pyShortVersion}" or { }; + binary-hashes = { + cp310 = "sha256-9uqxHchJD4jnjgaqZFkFslnN4foDsV6EJhVcR4K6C74="; + cp311 = "sha256-cXEcvywVYhP9SbD5zJMYCnukJBEAcKNL3qPcCVJ/Md8="; + cp312 = "sha256-Z0dVgU9WkjBsVUytvCQBWvgj3AUW40ve8kzKydemVuM="; + }; in - fetchPypi ( - { - inherit pname version format; - dist = pyShortVersion; - python = pyShortVersion; - abi = pyShortVersion; - platform = "manylinux2014_x86_64"; - } - // binary-hash - ); + fetchPypi { + inherit pname version format; + dist = pyShortVersion; + python = pyShortVersion; + abi = pyShortVersion; + platform = "manylinux2014_x86_64"; + hash = binary-hashes.${pyShortVersion}; + }; nativeBuildInputs = [ autoPatchelfHook