mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 23:13:19 +00:00
python312Packages.minari: 0.4.3 -> 0.5.0 (#338197)
This commit is contained in:
commit
84173eb8cf
@ -3,28 +3,34 @@
|
||||
buildPythonPackage,
|
||||
pythonOlder,
|
||||
fetchFromGitHub,
|
||||
|
||||
# build-system
|
||||
setuptools,
|
||||
wheel,
|
||||
google-cloud-storage,
|
||||
|
||||
# dependencies
|
||||
gymnasium,
|
||||
h5py,
|
||||
numpy,
|
||||
packaging,
|
||||
portion,
|
||||
rich,
|
||||
tqdm,
|
||||
typer,
|
||||
typing-extensions,
|
||||
imageio,
|
||||
nbmake,
|
||||
|
||||
# optional-dependencies
|
||||
pyarrow,
|
||||
jax,
|
||||
google-cloud-storage,
|
||||
tqdm,
|
||||
h5py,
|
||||
mktestdocs,
|
||||
pytest,
|
||||
pytest-markdown-docs,
|
||||
|
||||
# tests
|
||||
jaxlib,
|
||||
pytestCheckHook,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "minari";
|
||||
version = "0.4.3";
|
||||
version = "0.5.0";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
@ -33,40 +39,52 @@ buildPythonPackage rec {
|
||||
owner = "Farama-Foundation";
|
||||
repo = "Minari";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-DwuANo0PCb2pPTVST8EwuJHe5HKRV8JIpFBpSqoJNh8=";
|
||||
hash = "sha256-SVt93d0GbCxeZXhh5vMPvnsBAeJAfGWNceFi0W9RgeM=";
|
||||
};
|
||||
|
||||
build-system = [
|
||||
setuptools
|
||||
wheel
|
||||
];
|
||||
|
||||
dependencies = [
|
||||
google-cloud-storage
|
||||
gymnasium
|
||||
h5py
|
||||
numpy
|
||||
packaging
|
||||
portion
|
||||
rich
|
||||
tqdm
|
||||
typer
|
||||
typing-extensions
|
||||
];
|
||||
|
||||
passthru.optional-dependencies = {
|
||||
optional-dependencies = {
|
||||
arrow = [ pyarrow ];
|
||||
create = [ jax ];
|
||||
gcs = [
|
||||
google-cloud-storage
|
||||
tqdm
|
||||
];
|
||||
hdf5 = [ h5py ];
|
||||
testing = [
|
||||
# gymnasium-robotics
|
||||
imageio
|
||||
nbmake
|
||||
mktestdocs
|
||||
pytest
|
||||
pytest-markdown-docs
|
||||
];
|
||||
};
|
||||
|
||||
pythonImportsCheck = [ "minari" ];
|
||||
|
||||
nativeCheckInputs = [ pytestCheckHook ];
|
||||
nativeCheckInputs = [
|
||||
jaxlib
|
||||
pytestCheckHook
|
||||
] ++ lib.flatten (lib.attrValues optional-dependencies);
|
||||
|
||||
disabledTests = [
|
||||
# Require internet access
|
||||
"test_download_namespace_dataset"
|
||||
"test_download_namespace_metadata"
|
||||
"test_markdown"
|
||||
|
||||
# Attempts at installing minari using pip (impossible in the sandbox)
|
||||
"test_readme"
|
||||
];
|
||||
|
||||
disabledTestPaths = [
|
||||
# Require internet access
|
||||
@ -74,15 +92,15 @@ buildPythonPackage rec {
|
||||
"tests/test_cli.py"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
meta = {
|
||||
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; [
|
||||
license = with lib.licenses; [
|
||||
asl20
|
||||
mit
|
||||
];
|
||||
maintainers = with maintainers; [ GaetanLepage ];
|
||||
maintainers = with lib.maintainers; [ GaetanLepage ];
|
||||
mainProgram = "minari";
|
||||
};
|
||||
}
|
||||
|
38
pkgs/development/python-modules/mktestdocs/default.nix
Normal file
38
pkgs/development/python-modules/mktestdocs/default.nix
Normal file
@ -0,0 +1,38 @@
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
|
||||
# build-system
|
||||
setuptools,
|
||||
|
||||
# tests
|
||||
pytestCheckHook,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "mktestdocs";
|
||||
version = "0.2.1";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "koaning";
|
||||
repo = "mktestdocs";
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-snlt6SDiDYr04b2b2NgBC/1IBffpei034vFx3fnYUOc=";
|
||||
};
|
||||
|
||||
build-system = [ setuptools ];
|
||||
|
||||
pythonImportsCheck = [ "mktestdocs" ];
|
||||
|
||||
nativeCheckInputs = [ pytestCheckHook ];
|
||||
|
||||
meta = {
|
||||
description = "Run pytest against markdown files/docstrings";
|
||||
homepage = "https://github.com/koaning/mktestdocs";
|
||||
changelog = "https://github.com/koaning/mktestdocs/releases/tag/${version}";
|
||||
license = lib.licenses.asl20;
|
||||
maintainers = with lib.maintainers; [ GaetanLepage ];
|
||||
};
|
||||
}
|
@ -7935,6 +7935,8 @@ self: super: with self; {
|
||||
|
||||
mkl-service = callPackage ../development/python-modules/mkl-service { };
|
||||
|
||||
mktestdocs = callPackage ../development/python-modules/mktestdocs { };
|
||||
|
||||
ml-collections = callPackage ../development/python-modules/ml-collections { };
|
||||
|
||||
ml-dtypes = callPackage ../development/python-modules/ml-dtypes { };
|
||||
|
Loading…
Reference in New Issue
Block a user