depot/third_party/nixpkgs/pkgs/development/python-modules/minari/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

88 lines
1.6 KiB
Nix

{
lib,
buildPythonPackage,
pythonOlder,
fetchFromGitHub,
setuptools,
wheel,
google-cloud-storage,
gymnasium,
h5py,
numpy,
packaging,
portion,
rich,
tqdm,
typer,
typing-extensions,
imageio,
nbmake,
pytest,
pytest-markdown-docs,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "minari";
version = "0.4.3";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "Farama-Foundation";
repo = "Minari";
rev = "refs/tags/v${version}";
hash = "sha256-DwuANo0PCb2pPTVST8EwuJHe5HKRV8JIpFBpSqoJNh8=";
};
build-system = [
setuptools
wheel
];
dependencies = [
google-cloud-storage
gymnasium
h5py
numpy
packaging
portion
rich
tqdm
typer
typing-extensions
];
passthru.optional-dependencies = {
testing = [
# gymnasium-robotics
imageio
nbmake
pytest
pytest-markdown-docs
];
};
pythonImportsCheck = [ "minari" ];
nativeCheckInputs = [ pytestCheckHook ];
disabledTestPaths = [
# Require internet access
"tests/dataset/test_dataset_download.py"
"tests/test_cli.py"
];
meta = with lib; {
description = "Standard format for offline reinforcement learning datasets, with popular reference datasets and related utilities";
homepage = "https://github.com/Farama-Foundation/Minari";
changelog = "https://github.com/Farama-Foundation/Minari/releases/tag/v${version}";
license = with licenses; [
asl20
mit
];
maintainers = with maintainers; [ GaetanLepage ];
mainProgram = "minari";
};
}