python3Packages.skrl: init at 0.8.0
This commit is contained in:
parent
b7d8c68778
commit
d2fa65f6e9
62
pkgs/development/python-modules/skrl/default.nix
Normal file
62
pkgs/development/python-modules/skrl/default.nix
Normal file
@ -0,0 +1,62 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pythonOlder
|
||||
, pytestCheckHook
|
||||
, gym
|
||||
, torch
|
||||
, tensorboard
|
||||
, tqdm
|
||||
, packaging
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "skrl";
|
||||
version = "0.8.0";
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Toni-SM";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
hash = "sha256-NfKgQyD7PkPOTnkIua3fOfH7tHNGQEOVZ2HtvIg5HzA=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
gym
|
||||
torch
|
||||
tensorboard
|
||||
tqdm
|
||||
packaging
|
||||
];
|
||||
|
||||
checkInputs = [ pytestCheckHook ];
|
||||
doCheck = torch.cudaSupport;
|
||||
|
||||
pythonImportsCheck = [
|
||||
"skrl"
|
||||
"skrl.agents"
|
||||
"skrl.agents.torch"
|
||||
"skrl.envs"
|
||||
"skrl.envs.torch"
|
||||
"skrl.models"
|
||||
"skrl.models.torch"
|
||||
"skrl.resources"
|
||||
"skrl.resources.noises"
|
||||
"skrl.resources.noises.torch"
|
||||
"skrl.resources.schedulers"
|
||||
"skrl.resources.schedulers.torch"
|
||||
"skrl.trainers"
|
||||
"skrl.trainers.torch"
|
||||
"skrl.utils"
|
||||
"skrl.utils.model_instantiators"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Reinforcement learning library using PyTorch focusing on readability and simplicity";
|
||||
homepage = "https://skrl.readthedocs.io";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ bcdarwin ];
|
||||
};
|
||||
}
|
@ -10325,6 +10325,8 @@ in {
|
||||
|
||||
skorch = callPackage ../development/python-modules/skorch { };
|
||||
|
||||
skrl = callPackage ../development/python-modules/skrl { };
|
||||
|
||||
skybellpy = callPackage ../development/python-modules/skybellpy { };
|
||||
|
||||
skyfield = callPackage ../development/python-modules/skyfield { };
|
||||
|
Loading…
Reference in New Issue
Block a user