2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
pythonOlder,
|
|
|
|
fetchFromGitHub,
|
2024-07-31 10:19:44 +00:00
|
|
|
|
|
|
|
# build-system
|
2024-06-05 15:53:02 +00:00
|
|
|
absl-py,
|
|
|
|
mujoco,
|
|
|
|
pyparsing,
|
|
|
|
setuptools,
|
2024-07-31 10:19:44 +00:00
|
|
|
|
|
|
|
# dependencies
|
2024-06-05 15:53:02 +00:00
|
|
|
dm-env,
|
|
|
|
dm-tree,
|
|
|
|
fsspec,
|
|
|
|
glfw,
|
|
|
|
h5py,
|
|
|
|
lxml,
|
|
|
|
mock,
|
|
|
|
numpy,
|
|
|
|
pillow,
|
|
|
|
protobuf,
|
|
|
|
pyopengl,
|
|
|
|
requests,
|
|
|
|
scipy,
|
|
|
|
tqdm,
|
|
|
|
etils,
|
2024-05-15 15:35:15 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "dm-control";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "1.0.22";
|
2024-05-15 15:35:15 +00:00
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "google-deepmind";
|
|
|
|
repo = "dm_control";
|
|
|
|
rev = "refs/tags/${version}";
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-Tw4VZmunSeb0H7ltPnLCEidSZ2cvcoWLei1DB32vWpw=";
|
2024-05-15 15:35:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
build-system = [
|
|
|
|
absl-py
|
|
|
|
mujoco
|
|
|
|
pyparsing
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonRemoveDeps = [
|
|
|
|
# Unpackaged
|
|
|
|
"labmaze"
|
|
|
|
];
|
|
|
|
|
|
|
|
dependencies = [
|
|
|
|
absl-py
|
|
|
|
dm-env
|
|
|
|
dm-tree
|
|
|
|
fsspec
|
|
|
|
glfw
|
|
|
|
h5py
|
|
|
|
lxml
|
|
|
|
mock
|
|
|
|
mujoco
|
|
|
|
numpy
|
|
|
|
pillow
|
|
|
|
protobuf
|
|
|
|
pyopengl
|
|
|
|
pyparsing
|
|
|
|
requests
|
|
|
|
scipy
|
|
|
|
setuptools
|
|
|
|
tqdm
|
|
|
|
] ++ etils.optional-dependencies.epath;
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "dm_control" ];
|
2024-05-15 15:35:15 +00:00
|
|
|
|
|
|
|
# The installed library clashes with the `dm_control` directory remaining in the source path.
|
|
|
|
# Usually, we get around this by `rm -rf` the python source files to ensure that the installed package is used.
|
|
|
|
# Here, we cannot do that as it would also remove the tests which are also in the `dm_control` directory.
|
|
|
|
# See https://github.com/google-deepmind/dm_control/issues/6
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
changelog = "https://github.com/google-deepmind/dm_control/releases/tag/${version}";
|
|
|
|
description = "Google DeepMind's software stack for physics-based simulation and Reinforcement Learning environments, using MuJoCo";
|
|
|
|
homepage = "https://github.com/google-deepmind/dm_control";
|
|
|
|
license = lib.licenses.asl20;
|
|
|
|
maintainers = with lib.maintainers; [ GaetanLepage ];
|
|
|
|
};
|
|
|
|
}
|