mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-10 22:30:59 +00:00
Diff: https://github.com/google-deepmind/mujoco/compare/3.14.0...3.15.0 Changelog: https://mujoco.readthedocs.io/en/3.15.0/changelog.html
73 lines
1.3 KiB
Nix
73 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
mujoco,
|
|
fetchFromGitHub,
|
|
|
|
# build-system
|
|
setuptools,
|
|
|
|
# dependencies
|
|
absl-py,
|
|
etils,
|
|
numpy,
|
|
warp-lang,
|
|
|
|
# optional-dependencies
|
|
jax,
|
|
|
|
# tests
|
|
pytestCheckHook,
|
|
writableTmpDirAsHomeHook,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "mujoco-warp";
|
|
inherit (mujoco) version;
|
|
pyproject = true;
|
|
__structuredAttrs = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "google-deepmind";
|
|
repo = "mujoco_warp";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-BIKz7k7r9TPzbP7V6CxbJdHW1C3wJnL6R4Olmx3CGIA=";
|
|
};
|
|
|
|
build-system = [
|
|
setuptools
|
|
];
|
|
|
|
dependencies = [
|
|
absl-py
|
|
etils
|
|
mujoco
|
|
numpy
|
|
warp-lang
|
|
];
|
|
|
|
optional-dependencies = {
|
|
cpu = [
|
|
jax
|
|
];
|
|
cuda = [
|
|
jax
|
|
];
|
|
};
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
writableTmpDirAsHomeHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "mujoco_warp" ];
|
|
|
|
meta = {
|
|
description = "GPU-optimized version of the MuJoCo physics simulator, designed for NVIDIA hardware";
|
|
homepage = "https://github.com/google-deepmind/mujoco_warp";
|
|
changelog = "https://github.com/google-deepmind/mujoco_warp/releases/tag/${finalAttrs.src.tag}";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ nim65s ];
|
|
};
|
|
})
|