-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
python312Packages.optimistix: init at 0.0.8
- Loading branch information
1 parent
4915d1c
commit 06e0592
Showing
2 changed files
with
65 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters