python3Packages.skrl: 1.4.3 -> 2.1.0

Diff: https://github.com/Toni-SM/skrl/compare/1.4.3...2.1.0

Changelog: https://github.com/Toni-SM/skrl/releases/tag/2.1.0
This commit is contained in:
Gaetan Lepage
2026-07-05 00:16:58 +02:00
parent 4e98de0f09
commit dbb575b70d

View File

@@ -19,16 +19,21 @@
flax,
hypothesis,
jax,
mujoco,
optax,
pettingzoo,
pygame,
pymunk,
pytest-xdist,
pytestCheckHook,
warp-lang,
warp-nn,
writableTmpDirAsHomeHook,
}:
buildPythonPackage (finalAttrs: {
pname = "skrl";
version = "1.4.3";
version = "2.1.0";
pyproject = true;
__structuredAttrs = true;
@@ -36,26 +41,9 @@ buildPythonPackage (finalAttrs: {
owner = "Toni-SM";
repo = "skrl";
tag = finalAttrs.version;
hash = "sha256-5lkoYAmMIWqK3+E3WxXMWS9zal2DhZkfl30EkrHKpdI=";
hash = "sha256-pntQ/7kefi7LLLG1DTKY9Zjlzb0UXiduQCzlX5PkZds=";
};
# Fix Jax 0.10.0 compatibility
# TypeError: clip() got an unexpected keyword argument 'a_min'
postPatch = ''
substituteInPlace skrl/models/jax/gaussian.py \
--replace-fail \
"jnp.clip(log_std, a_min=log_std_min, a_max=log_std_max)" \
"jnp.clip(log_std, min=log_std_min, max=log_std_max)" \
--replace-fail \
"jnp.clip(actions, a_min=clip_actions_min, a_max=clip_actions_max)" \
"jnp.clip(actions, min=clip_actions_min, max=clip_actions_max)"
substituteInPlace skrl/models/jax/deterministic.py \
--replace-fail \
"jnp.clip(actions, a_min=self._d_clip_actions_min, a_max=self._d_clip_actions_max)" \
"jnp.clip(actions, min=self._d_clip_actions_min, max=self._d_clip_actions_max)"
'';
build-system = [ setuptools ];
dependencies = [
@@ -74,20 +62,37 @@ buildPythonPackage (finalAttrs: {
flax
hypothesis
jax
mujoco
optax
pettingzoo
pygame
pymunk
pytest-xdist
pytestCheckHook
warp-lang
warp-nn
writableTmpDirAsHomeHook
];
disabledTests = [
# Flaky when using pytest-xdist
"test_agent"
# TypeError: The array passed to from_dlpack must have __dlpack__ and __dlpack_device__ methods
"test_env"
"test_multi_agent_env"
# OverflowError
"test_key"
# Require GPU access
"test_device[cuda]"
"test_parse_device[cuda]"
];
disabledTestPaths = [
# TypeError: Can't instantiate abstract class Memory without an implementation for abstract method 'sample'
"tests/memories/torch/test_base.py"
];
meta = {