python310Packages.jaxopt: init at 0.5.5
This commit is contained in:
parent
a46d9dd25b
commit
2f14f5d561
2 changed files with 61 additions and 0 deletions
59
pkgs/development/python-modules/jaxopt/default.nix
Normal file
59
pkgs/development/python-modules/jaxopt/default.nix
Normal file
|
@ -0,0 +1,59 @@
|
||||||
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, pythonOlder
|
||||||
|
, fetchFromGitHub
|
||||||
|
, pytestCheckHook
|
||||||
|
, absl-py
|
||||||
|
, cvxpy
|
||||||
|
, jax
|
||||||
|
, jaxlib
|
||||||
|
, matplotlib
|
||||||
|
, numpy
|
||||||
|
, optax
|
||||||
|
, scipy
|
||||||
|
, scikitlearn
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "jaxopt";
|
||||||
|
version = "0.5.5";
|
||||||
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "google";
|
||||||
|
repo = pname;
|
||||||
|
rev = "refs/tags/${pname}-v${version}";
|
||||||
|
hash = "sha256-WOsr/Dvguu9/qX6+LMlAKM3EANtYPtDu8Uo2157+bs0=";
|
||||||
|
};
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
absl-py
|
||||||
|
jax
|
||||||
|
jaxlib
|
||||||
|
matplotlib
|
||||||
|
numpy
|
||||||
|
scipy
|
||||||
|
];
|
||||||
|
|
||||||
|
nativeCheckInputs = [
|
||||||
|
pytestCheckHook
|
||||||
|
cvxpy
|
||||||
|
optax
|
||||||
|
scikitlearn
|
||||||
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [
|
||||||
|
"jaxopt"
|
||||||
|
"jaxopt.implicit_diff"
|
||||||
|
"jaxopt.linear_solve"
|
||||||
|
"jaxopt.loss"
|
||||||
|
"jaxopt.tree_util"
|
||||||
|
];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
homepage = "https://jaxopt.github.io";
|
||||||
|
description = "Hardware accelerated, batchable and differentiable optimizers in JAX";
|
||||||
|
license = licenses.asl20;
|
||||||
|
maintainers = with maintainers; [ bcdarwin ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -4850,6 +4850,8 @@ self: super: with self; {
|
||||||
cudaSupport = false;
|
cudaSupport = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
jaxopt = callPackage ../development/python-modules/jaxopt { };
|
||||||
|
|
||||||
JayDeBeApi = callPackage ../development/python-modules/JayDeBeApi { };
|
JayDeBeApi = callPackage ../development/python-modules/JayDeBeApi { };
|
||||||
|
|
||||||
jc = callPackage ../development/python-modules/jc { };
|
jc = callPackage ../development/python-modules/jc { };
|
||||||
|
|
Loading…
Reference in a new issue