Something went wrong. Try again.
lol
Something went wrong. Try again.
1.5 kB · 69 lines
Nix
at master
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970{ lib, buildPythonPackage, fetchFromGitHub,
# build-system hatchling,
# dependencies jax, jaxtyping, typing-extensions, wadler-lindig,
# tests beartype, optax, pytest-xdist, pytestCheckHook,}:
buildPythonPackage (finalAttrs: { pname = "equinox"; version = "0.13.7"; pyproject = true; __structuredAttrs = true;
src = fetchFromGitHub { owner = "patrick-kidger"; repo = "equinox"; tag = "v${finalAttrs.version}"; hash = "sha256-vgmU8cqNCyiZYah1SSwzVtLS+YB2T1uooCC17k12+h8="; };
# Relax speed constraints on tests that can fail on busy builders postPatch = '' substituteInPlace tests/test_while_loop.py \ --replace-fail "speed < 0.1" "speed < 0.5" \ --replace-fail "speed < 0.5" "speed < 1" \ --replace-fail "speed < 1" "speed < 20" \ --replace-fail "speed < 2" "speed < 20" '';
build-system = [ hatchling ];
dependencies = [ jax jaxtyping typing-extensions wadler-lindig ];
nativeCheckInputs = [ beartype optax pytest-xdist pytestCheckHook ];
pythonImportsCheck = [ "equinox" ];
meta = { description = "JAX library based around a simple idea: represent parameterised functions (such as neural networks) as PyTrees"; changelog = "https://github.com/patrick-kidger/equinox/releases/tag/${finalAttrs.src.tag}"; homepage = "https://github.com/patrick-kidger/equinox"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ GaetanLepage ]; };})