2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
2024-09-19 14:19:46 +00:00
|
|
|
|
|
|
|
# build-system
|
2024-06-05 15:53:02 +00:00
|
|
|
hatchling,
|
2024-09-19 14:19:46 +00:00
|
|
|
|
|
|
|
# dependencies
|
2024-06-05 15:53:02 +00:00
|
|
|
jax,
|
|
|
|
jaxlib,
|
|
|
|
jaxtyping,
|
|
|
|
typing-extensions,
|
2024-09-19 14:19:46 +00:00
|
|
|
|
|
|
|
# checks
|
2024-06-05 15:53:02 +00:00
|
|
|
beartype,
|
|
|
|
optax,
|
|
|
|
pytest-xdist,
|
|
|
|
pytestCheckHook,
|
2023-08-10 07:59:29 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "equinox";
|
2024-10-23 06:41:50 +00:00
|
|
|
version = "0.11.8";
|
2023-10-19 13:55:26 +00:00
|
|
|
pyproject = true;
|
2023-08-10 07:59:29 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "patrick-kidger";
|
2023-10-19 13:55:26 +00:00
|
|
|
repo = "equinox";
|
2023-08-10 07:59:29 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-10-23 06:41:50 +00:00
|
|
|
hash = "sha256-lZb2NobSELz8kviPd4Z8PPEEaydaEC5Z6eb9pzC7Ki8=";
|
2023-08-10 07:59:29 +00:00
|
|
|
};
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
build-system = [ hatchling ];
|
2023-08-10 07:59:29 +00:00
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
dependencies = [
|
2023-08-10 07:59:29 +00:00
|
|
|
jax
|
|
|
|
jaxlib
|
|
|
|
jaxtyping
|
|
|
|
typing-extensions
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
beartype
|
2023-10-19 13:55:26 +00:00
|
|
|
optax
|
2024-01-13 08:15:51 +00:00
|
|
|
pytest-xdist
|
2023-08-10 07:59:29 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "equinox" ];
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
meta = {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "JAX library based around a simple idea: represent parameterised functions (such as neural networks) as PyTrees";
|
2024-01-13 08:15:51 +00:00
|
|
|
changelog = "https://github.com/patrick-kidger/equinox/releases/tag/v${version}";
|
2023-08-10 07:59:29 +00:00
|
|
|
homepage = "https://github.com/patrick-kidger/equinox";
|
2024-07-27 06:49:29 +00:00
|
|
|
license = lib.licenses.asl20;
|
|
|
|
maintainers = with lib.maintainers; [ GaetanLepage ];
|
2023-08-10 07:59:29 +00:00
|
|
|
};
|
|
|
|
}
|