File tree Expand file tree Collapse file tree 1 file changed +41
-29
lines changed
pkgs/development/python-modules/skrl Expand file tree Collapse file tree 1 file changed +41
-29
lines changed Original file line number Diff line number Diff line change 22 lib ,
33 buildPythonPackage ,
44 fetchFromGitHub ,
5+
6+ # build-system
57 setuptools ,
8+
9+ # dependencies
610 gym ,
711 gymnasium ,
8- torch ,
12+ packaging ,
913 tensorboard ,
14+ torch ,
1015 tqdm ,
1116 wandb ,
12- packaging ,
17+
18+ # tests
19+ flax ,
20+ jax ,
21+ optax ,
22+ pettingzoo ,
23+ pygame ,
24+ pymunk ,
1325 pytestCheckHook ,
1426} :
1527
16- buildPythonPackage rec {
28+ buildPythonPackage ( finalAttrs : {
1729 pname = "skrl" ;
1830 version = "1.4.3" ;
1931 pyproject = true ;
2032
2133 src = fetchFromGitHub {
2234 owner = "Toni-SM" ;
2335 repo = "skrl" ;
24- tag = version ;
36+ tag = finalAttrs . version ;
2537 hash = "sha256-5lkoYAmMIWqK3+E3WxXMWS9zal2DhZkfl30EkrHKpdI=" ;
2638 } ;
2739
28- nativeBuildInputs = [ setuptools ] ;
40+ build-system = [ setuptools ] ;
2941
30- propagatedBuildInputs = [
42+ dependencies = [
3143 gym
3244 gymnasium
33- torch
45+ packaging
3446 tensorboard
47+ torch
3548 tqdm
3649 wandb
37- packaging
3850 ] ;
3951
40- nativeCheckInputs = [ pytestCheckHook ] ;
41- doCheck = torch . cudaSupport ;
52+ pythonImportsCheck = [ "skrl" ] ;
53+
54+ nativeCheckInputs = [
55+ flax
56+ jax
57+ optax
58+ pettingzoo
59+ pygame
60+ pymunk
61+ pytestCheckHook
62+ ] ;
63+
64+ disabledTests = [
65+ # TypeError: The array passed to from_dlpack must have __dlpack__ and __dlpack_device__ methods
66+ "test_env"
67+ "test_multi_agent_env"
4268
43- pythonImportsCheck = [
44- "skrl"
45- "skrl.agents"
46- "skrl.agents.torch"
47- "skrl.envs"
48- "skrl.envs.torch"
49- "skrl.models"
50- "skrl.models.torch"
51- "skrl.resources"
52- "skrl.resources.noises"
53- "skrl.resources.noises.torch"
54- "skrl.resources.schedulers"
55- "skrl.resources.schedulers.torch"
56- "skrl.trainers"
57- "skrl.trainers.torch"
58- "skrl.utils"
59- "skrl.utils.model_instantiators"
69+ # OverflowError
70+ "test_key"
6071 ] ;
6172
6273 meta = {
6374 description = "Reinforcement learning library using PyTorch focusing on readability and simplicity" ;
64- changelog = "https://github.com/Toni-SM/skrl/releases/tag/${ version } " ;
6575 homepage = "https://skrl.readthedocs.io" ;
76+ downloadPage = "https://github.com/Toni-SM/skrl" ;
77+ changelog = "https://github.com/Toni-SM/skrl/releases/tag/${ finalAttrs . src . tag } " ;
6678 license = lib . licenses . mit ;
6779 maintainers = with lib . maintainers ; [ bcdarwin ] ;
6880 } ;
69- }
81+ } )
You can’t perform that action at this time.
0 commit comments