blob: 991899643be9364cea53d66711818f6e01539977 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
gym,
gymnasium,
torch,
tensorboard,
tqdm,
wandb,
packaging,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "skrl";
version = "1.4.3";
pyproject = true;
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 = {
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 = lib.licenses.mit;
maintainers = with lib.maintainers; [ bcdarwin ];
};
}
|