python311Packages.evosax: init at 0.1.6
This commit is contained in:
@@ -0,0 +1,84 @@
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
pythonOlder,
|
||||
fetchFromGitHub,
|
||||
|
||||
# build-system
|
||||
setuptools,
|
||||
|
||||
# dependencies
|
||||
chex,
|
||||
dotmap,
|
||||
flax,
|
||||
jax,
|
||||
jaxlib,
|
||||
matplotlib,
|
||||
numpy,
|
||||
pyyaml,
|
||||
|
||||
# checks
|
||||
# brax, (unpackaged)
|
||||
# gymnax, (unpackaged)
|
||||
pytestCheckHook,
|
||||
torch,
|
||||
torchvision,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "evosax";
|
||||
version = "0.1.6";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "RobertTLange";
|
||||
repo = "evosax";
|
||||
rev = "refs/tags/v.${version}";
|
||||
hash = "sha256-v8wRiWZlJPF9pIXocQ6/caHl1W4QBNjkmuImJ6MAueo=";
|
||||
};
|
||||
|
||||
build-system = [ setuptools ];
|
||||
|
||||
dependencies = [
|
||||
chex
|
||||
dotmap
|
||||
flax
|
||||
jax
|
||||
jaxlib
|
||||
matplotlib
|
||||
numpy
|
||||
pyyaml
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "evosax" ];
|
||||
|
||||
preCheck = ''
|
||||
export HOME=$(mktemp -d)
|
||||
'';
|
||||
|
||||
nativeCheckInputs = [
|
||||
# brax
|
||||
# gymnax
|
||||
pytestCheckHook
|
||||
torch
|
||||
torchvision
|
||||
];
|
||||
|
||||
disabledTests = [
|
||||
# Requires unpackaged gymnax
|
||||
"test_env_ffw_rollout"
|
||||
|
||||
# Tries to download a data set from the internet
|
||||
"test_vision_fitness"
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "Evolution Strategies in JAX";
|
||||
homepage = "https://github.com/RobertTLange/evosax";
|
||||
changelog = "https://github.com/RobertTLange/evosax/blob/${src.rev}/CHANGELOG.md";
|
||||
license = lib.licenses.asl20;
|
||||
maintainers = with lib.maintainers; [ GaetanLepage ];
|
||||
};
|
||||
}
|
||||
@@ -4014,6 +4014,8 @@ self: super: with self; {
|
||||
|
||||
evohome-async = callPackage ../development/python-modules/evohome-async { };
|
||||
|
||||
evosax = callPackage ../development/python-modules/evosax { };
|
||||
|
||||
evtx = callPackage ../development/python-modules/evtx { };
|
||||
|
||||
ewmh = callPackage ../development/python-modules/ewmh { };
|
||||
|
||||
Reference in New Issue
Block a user