Files
nixpkgs/pkgs/development/python-modules/skrl/default.nix
2025-05-25 04:04:53 +02:00

72 lines
1.4 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
setuptools,
gym,
gymnasium,
torch,
tensorboard,
tqdm,
wandb,
packaging,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "skrl";
version = "1.4.3";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "Toni-SM";
repo = "skrl";
tag = version;
hash = "sha256-5lkoYAmMIWqK3+E3WxXMWS9zal2DhZkfl30EkrHKpdI=";
};
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [
gym
gymnasium
torch
tensorboard
tqdm
wandb
packaging
];
nativeCheckInputs = [ pytestCheckHook ];
doCheck = torch.cudaSupport;
pythonImportsCheck = [
"skrl"
"skrl.agents"
"skrl.agents.torch"
"skrl.envs"
"skrl.envs.torch"
"skrl.models"
"skrl.models.torch"
"skrl.resources"
"skrl.resources.noises"
"skrl.resources.noises.torch"
"skrl.resources.schedulers"
"skrl.resources.schedulers.torch"
"skrl.trainers"
"skrl.trainers.torch"
"skrl.utils"
"skrl.utils.model_instantiators"
];
meta = with lib; {
description = "Reinforcement learning library using PyTorch focusing on readability and simplicity";
changelog = "https://github.com/Toni-SM/skrl/releases/tag/${version}";
homepage = "https://skrl.readthedocs.io";
license = licenses.mit;
maintainers = with maintainers; [ bcdarwin ];
};
}