Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.9 kB · 95 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596{ lib, buildPythonPackage, pythonOlder, fetchFromGitHub, absl-py, mujoco, pyparsing, setuptools, wheel, dm-env, dm-tree, fsspec, glfw, h5py, lxml, mock, nose, nose-xunitmp, numpy, pillow, protobuf, pyopengl, requests, scipy, tqdm, etils,}:
buildPythonPackage rec { pname = "dm-control"; version = "1.0.20"; pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub { owner = "google-deepmind"; repo = "dm_control"; rev = "refs/tags/${version}"; hash = "sha256-huXvfQz7E+OCqRrhLC5dUaG/A2PQXrPBzseIFx7ZIeE="; };
build-system = [ absl-py mujoco pyparsing setuptools wheel ];
pythonRemoveDeps = [ # Unpackaged "labmaze" ];
dependencies = [ absl-py dm-env dm-tree fsspec glfw h5py lxml mock mujoco nose nose-xunitmp numpy pillow protobuf pyopengl pyparsing requests scipy setuptools tqdm ] ++ etils.optional-dependencies.epath;
pythonImportsCheck = [ "dm_control" ];
# 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 ]; };}