python312Packages.optimistix: init at 0.0.8
This commit is contained in:
parent
4915d1cb8a
commit
06e05929e9
63
pkgs/development/python-modules/optimistix/default.nix
Normal file
63
pkgs/development/python-modules/optimistix/default.nix
Normal file
@ -0,0 +1,63 @@
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
|
||||
# build-system
|
||||
hatchling,
|
||||
|
||||
# dependencies
|
||||
equinox,
|
||||
jax,
|
||||
jaxtyping,
|
||||
lineax,
|
||||
typing-extensions,
|
||||
|
||||
# checks
|
||||
beartype,
|
||||
jaxlib,
|
||||
optax,
|
||||
pytestCheckHook,
|
||||
pytest-xdist,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "optimistix";
|
||||
version = "0.0.8";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "patrick-kidger";
|
||||
repo = "optimistix";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-0ehNApiBoiAb8LFBW81ZCRPsjTVQG8zRTVSAp7oHF8w=";
|
||||
};
|
||||
|
||||
build-system = [ hatchling ];
|
||||
|
||||
dependencies = [
|
||||
equinox
|
||||
jax
|
||||
jaxtyping
|
||||
lineax
|
||||
typing-extensions
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "optimistix" ];
|
||||
|
||||
nativeCheckInputs = [
|
||||
beartype
|
||||
jaxlib
|
||||
optax
|
||||
pytestCheckHook
|
||||
pytest-xdist
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "Nonlinear optimisation (root-finding, least squares, ...) in JAX+Equinox";
|
||||
homepage = "https://github.com/patrick-kidger/optimistix";
|
||||
changelog = "https://github.com/patrick-kidger/optimistix/releases/tag/v${version}";
|
||||
license = lib.licenses.asl20;
|
||||
maintainers = with lib.maintainers; [ GaetanLepage ];
|
||||
};
|
||||
}
|
@ -9410,6 +9410,8 @@ self: super: with self; {
|
||||
|
||||
optax = callPackage ../development/python-modules/optax { };
|
||||
|
||||
optimistix = callPackage ../development/python-modules/optimistix { };
|
||||
|
||||
optimum = callPackage ../development/python-modules/optimum { };
|
||||
|
||||
optree = callPackage ../development/python-modules/optree { };
|
||||
|
Loading…
Reference in New Issue
Block a user