62 buildPythonPackage rec {
63 inherit pname version;
66 disabled = pythonOlder "3.8" || pythonAtLeast "3.11";
70 pyShortVersion = "cp${builtins.replaceStrings ["."] [""] python.pythonVersion}";
71 binary-hash = (import ./binary-hashes.nix)."${pyShortVersion}";
74 inherit pname version format;
75 dist = pyShortVersion;
76 python = pyShortVersion;
78 platform = "manylinux2014_x86_64";
81 passthru.optional-dependencies = rec {
101 rllib-deps = tune-deps ++ [
111 air-deps = data-deps ++ serve-deps ++ tune-deps ++ rllib-deps;
114 nativeBuildInputs = [
119 pythonRelaxDeps = [ "grpcio" "click" "protobuf" ];
121 propagatedBuildInputs = [
153 chmod +x $out/${python.sitePackages}/ray/core/src/ray/{gcs/gcs_server,raylet/raylet}
154 ln -sf ${redis}/bin/redis-server $out/${python.sitePackages}/ray/core/src/ray/thirdparty/redis/src/redis-server
157 pythonImportsCheck = [ "ray" ];
160 description = "A unified framework for scaling AI and Python applications";
161 homepage = "https://github.com/ray-project/ray";
162 license = licenses.asl20;
163 maintainers = with maintainers; [ billhuang ];
164 platforms = [ "x86_64-linux" ];