mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-10-06 04:27:27 +03:00
Merge pull request #309833 from GaetanLepage/minari
python311Packages.minari: init at 0.4.3
This commit is contained in:
commit
c6f30e65ea
88
pkgs/development/python-modules/minari/default.nix
Normal file
88
pkgs/development/python-modules/minari/default.nix
Normal file
@ -0,0 +1,88 @@
|
||||
{ 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 = "A 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";
|
||||
};
|
||||
}
|
74
pkgs/development/python-modules/nbmake/default.nix
Normal file
74
pkgs/development/python-modules/nbmake/default.nix
Normal file
@ -0,0 +1,74 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, pythonOlder
|
||||
, fetchFromGitHub
|
||||
, poetry-core
|
||||
, pythonRelaxDepsHook
|
||||
, setuptools
|
||||
, wheel
|
||||
, ipykernel
|
||||
, nbclient
|
||||
, nbformat
|
||||
, pygments
|
||||
, pytest
|
||||
, pyyaml
|
||||
, pytest-xdist
|
||||
, pytestCheckHook
|
||||
, typing-extensions
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "nbmake";
|
||||
version = "1.5.3";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "treebeardtech";
|
||||
repo = "nbmake";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-sX0YqyBchLlo0QPIpLvl11/gwoiZknG5rBDzmQKiXhs=";
|
||||
};
|
||||
|
||||
build-system = [
|
||||
poetry-core
|
||||
pythonRelaxDepsHook
|
||||
setuptools
|
||||
wheel
|
||||
];
|
||||
|
||||
dependencies = [
|
||||
ipykernel
|
||||
nbclient
|
||||
nbformat
|
||||
pygments
|
||||
pytest
|
||||
pyyaml
|
||||
];
|
||||
|
||||
pythonRelaxDeps = [
|
||||
"nbclient"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"nbmake"
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytest-xdist
|
||||
pytestCheckHook
|
||||
typing-extensions
|
||||
];
|
||||
|
||||
__darwinAllowLocalNetworking = true;
|
||||
|
||||
|
||||
meta = with lib; {
|
||||
description = "Pytest plugin for testing notebooks";
|
||||
homepage = "https://github.com/treebeardtech/nbmake";
|
||||
changelog = "https://github.com/treebeardtech/nbmake/releases/tag/v${version}";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ GaetanLepage ];
|
||||
};
|
||||
}
|
49
pkgs/development/python-modules/portion/default.nix
Normal file
49
pkgs/development/python-modules/portion/default.nix
Normal file
@ -0,0 +1,49 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, pythonOlder
|
||||
, fetchFromGitHub
|
||||
, setuptools
|
||||
, wheel
|
||||
, sortedcontainers
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "portion";
|
||||
version = "2.4.2";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "AlexandreDecan";
|
||||
repo = "portion";
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-URoyuE0yivUqPjJZbvATkAnTxicY4F2eiJ16rIUdY3Y=";
|
||||
};
|
||||
|
||||
build-system = [
|
||||
setuptools
|
||||
wheel
|
||||
];
|
||||
|
||||
dependencies = [
|
||||
sortedcontainers
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"portion"
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Portion, a Python library providing data structure and operations for intervals";
|
||||
homepage = "https://github.com/AlexandreDecan/portion";
|
||||
changelog = "https://github.com/AlexandreDecan/portion/blob/${src.rev}/CHANGELOG.md";
|
||||
license = licenses.lgpl3;
|
||||
maintainers = with maintainers; [ GaetanLepage ];
|
||||
};
|
||||
}
|
@ -31399,6 +31399,8 @@ with pkgs;
|
||||
|
||||
manuskript = libsForQt5.callPackage ../applications/editors/manuskript { };
|
||||
|
||||
minari = python3Packages.toPythonApplication python3Packages.minari;
|
||||
|
||||
mindforger = libsForQt5.callPackage ../applications/editors/mindforger { };
|
||||
|
||||
mi2ly = callPackage ../applications/audio/mi2ly { };
|
||||
|
@ -7427,6 +7427,8 @@ self: super: with self; {
|
||||
|
||||
millheater = callPackage ../development/python-modules/millheater { };
|
||||
|
||||
minari = callPackage ../development/python-modules/minari { };
|
||||
|
||||
mindsdb-evaluator = callPackage ../development/python-modules/mindsdb-evaluator { };
|
||||
|
||||
minexr = callPackage ../development/python-modules/minexr { };
|
||||
@ -8630,6 +8632,8 @@ self: super: with self; {
|
||||
|
||||
nbformat = callPackage ../development/python-modules/nbformat { };
|
||||
|
||||
nbmake = callPackage ../development/python-modules/nbmake { };
|
||||
|
||||
nbmerge = callPackage ../development/python-modules/nbmerge { };
|
||||
|
||||
nbsmoke = callPackage ../development/python-modules/nbsmoke { };
|
||||
@ -10246,6 +10250,8 @@ self: super: with self; {
|
||||
|
||||
portend = callPackage ../development/python-modules/portend { };
|
||||
|
||||
portion = callPackage ../development/python-modules/portion { };
|
||||
|
||||
port-for = callPackage ../development/python-modules/port-for { };
|
||||
|
||||
portpicker = callPackage ../development/python-modules/portpicker { };
|
||||
|
Loading…
Reference in New Issue
Block a user