2c76a4cb41
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
51 lines
970 B
Nix
51 lines
970 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, hatchling
|
|
, jax
|
|
, jaxlib
|
|
, jaxtyping
|
|
, typing-extensions
|
|
, beartype
|
|
, optax
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "equinox";
|
|
version = "0.11.2";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "patrick-kidger";
|
|
repo = "equinox";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-qFTKiY/t2LCCWJBOSfaX0hYQInrpXgfhTc+J4iuyVbM=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
hatchling
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
jax
|
|
jaxlib
|
|
jaxtyping
|
|
typing-extensions
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
beartype
|
|
optax
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "equinox" ];
|
|
|
|
meta = with lib; {
|
|
description = "A JAX library based around a simple idea: represent parameterised functions (such as neural networks) as PyTrees";
|
|
homepage = "https://github.com/patrick-kidger/equinox";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ GaetanLepage ];
|
|
};
|
|
}
|