2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
aiohttp,
|
|
|
|
aiohttp-cors,
|
|
|
|
aiorwlock,
|
|
|
|
aiosignal,
|
|
|
|
attrs,
|
|
|
|
autoPatchelfHook,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
click,
|
|
|
|
cloudpickle,
|
|
|
|
colorama,
|
|
|
|
colorful,
|
|
|
|
cython,
|
|
|
|
dm-tree,
|
|
|
|
fastapi,
|
|
|
|
filelock,
|
|
|
|
frozenlist,
|
|
|
|
fsspec,
|
|
|
|
gpustat,
|
|
|
|
grpcio,
|
|
|
|
gym,
|
|
|
|
jsonschema,
|
|
|
|
lib,
|
|
|
|
lz4,
|
|
|
|
matplotlib,
|
|
|
|
msgpack,
|
|
|
|
numpy,
|
|
|
|
opencensus,
|
|
|
|
packaging,
|
|
|
|
pandas,
|
|
|
|
py-spy,
|
|
|
|
prometheus-client,
|
|
|
|
psutil,
|
|
|
|
pyarrow,
|
|
|
|
pydantic,
|
|
|
|
python,
|
|
|
|
pythonAtLeast,
|
|
|
|
pythonOlder,
|
|
|
|
pythonRelaxDepsHook,
|
|
|
|
pyyaml,
|
|
|
|
requests,
|
|
|
|
scikit-image,
|
|
|
|
scipy,
|
|
|
|
setproctitle,
|
|
|
|
smart-open,
|
|
|
|
starlette,
|
|
|
|
tabulate,
|
|
|
|
tensorboardx,
|
|
|
|
uvicorn,
|
|
|
|
virtualenv,
|
2022-10-30 15:09:59 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
|
|
|
pname = "ray";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "2.23.0";
|
2022-10-30 15:09:59 +00:00
|
|
|
in
|
|
|
|
buildPythonPackage rec {
|
|
|
|
inherit pname version;
|
|
|
|
format = "wheel";
|
|
|
|
|
2024-01-25 14:12:00 +00:00
|
|
|
disabled = pythonOlder "3.10" || pythonAtLeast "3.12";
|
2022-10-30 15:09:59 +00:00
|
|
|
|
|
|
|
src =
|
|
|
|
let
|
2024-06-05 15:53:02 +00:00
|
|
|
pyShortVersion = "cp${builtins.replaceStrings [ "." ] [ "" ] python.pythonVersion}";
|
|
|
|
binary-hash = (import ./binary-hashes.nix)."${pyShortVersion}" or { };
|
2022-10-30 15:09:59 +00:00
|
|
|
in
|
2024-06-05 15:53:02 +00:00
|
|
|
fetchPypi (
|
|
|
|
{
|
|
|
|
inherit pname version format;
|
|
|
|
dist = pyShortVersion;
|
|
|
|
python = pyShortVersion;
|
|
|
|
abi = pyShortVersion;
|
|
|
|
platform = "manylinux2014_x86_64";
|
|
|
|
}
|
|
|
|
// binary-hash
|
|
|
|
);
|
2022-10-30 15:09:59 +00:00
|
|
|
|
|
|
|
passthru.optional-dependencies = rec {
|
|
|
|
data-deps = [
|
|
|
|
pandas
|
|
|
|
pyarrow
|
|
|
|
fsspec
|
|
|
|
];
|
|
|
|
|
|
|
|
serve-deps = [
|
|
|
|
aiorwlock
|
|
|
|
fastapi
|
|
|
|
pandas
|
|
|
|
starlette
|
|
|
|
uvicorn
|
|
|
|
];
|
|
|
|
|
|
|
|
tune-deps = [
|
|
|
|
tabulate
|
|
|
|
tensorboardx
|
|
|
|
];
|
|
|
|
|
|
|
|
rllib-deps = tune-deps ++ [
|
|
|
|
dm-tree
|
|
|
|
gym
|
|
|
|
lz4
|
|
|
|
matplotlib
|
2023-05-24 13:37:59 +00:00
|
|
|
scikit-image
|
2022-10-30 15:09:59 +00:00
|
|
|
pyyaml
|
|
|
|
scipy
|
|
|
|
];
|
|
|
|
|
|
|
|
air-deps = data-deps ++ serve-deps ++ tune-deps ++ rllib-deps;
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
autoPatchelfHook
|
|
|
|
pythonRelaxDepsHook
|
|
|
|
];
|
|
|
|
|
2023-03-15 16:39:30 +00:00
|
|
|
pythonRelaxDeps = [
|
|
|
|
"click"
|
|
|
|
"grpcio"
|
|
|
|
"protobuf"
|
2023-08-22 20:05:09 +00:00
|
|
|
"virtualenv"
|
2023-03-15 16:39:30 +00:00
|
|
|
];
|
2022-10-30 15:09:59 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
attrs
|
|
|
|
aiohttp
|
|
|
|
aiohttp-cors
|
|
|
|
aiosignal
|
|
|
|
click
|
|
|
|
cloudpickle
|
|
|
|
colorama
|
|
|
|
colorful
|
|
|
|
cython
|
|
|
|
filelock
|
|
|
|
frozenlist
|
|
|
|
gpustat
|
|
|
|
grpcio
|
|
|
|
jsonschema
|
|
|
|
msgpack
|
|
|
|
numpy
|
|
|
|
opencensus
|
|
|
|
packaging
|
|
|
|
py-spy
|
|
|
|
prometheus-client
|
|
|
|
psutil
|
|
|
|
pydantic
|
|
|
|
pyyaml
|
|
|
|
requests
|
|
|
|
setproctitle
|
|
|
|
smart-open
|
|
|
|
virtualenv
|
|
|
|
];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
chmod +x $out/${python.sitePackages}/ray/core/src/ray/{gcs/gcs_server,raylet/raylet}
|
|
|
|
'';
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "ray" ];
|
2022-10-30 15:09:59 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A unified framework for scaling AI and Python applications";
|
|
|
|
homepage = "https://github.com/ray-project/ray";
|
2023-03-15 16:39:30 +00:00
|
|
|
changelog = "https://github.com/ray-project/ray/releases/tag/ray-${version}";
|
2022-10-30 15:09:59 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ billhuang ];
|
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
};
|
|
|
|
}
|