Something went wrong. Try again.
lol
Something went wrong. Try again.
1.3 kB · 66 lines
Nix
at master
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667{ lib, buildPythonPackage, fetchFromGitHub,
# build-system hatchling,
# dependencies equinox, jax, jaxtyping, typing-extensions,
# tests beartype, pytest, python,}:
buildPythonPackage (finalAttrs: { pname = "lineax"; version = "0.1.0"; pyproject = true;
src = fetchFromGitHub { owner = "patrick-kidger"; repo = "lineax"; tag = "v${finalAttrs.version}"; hash = "sha256-oUqJRp4pge3t9g7o/9PCZTb7e4EPkBEGLclHMIdUqiw="; };
build-system = [ hatchling ];
dependencies = [ equinox jax jaxtyping typing-extensions ];
pythonImportsCheck = [ "lineax" ];
nativeCheckInputs = [ beartype pytest ];
# Intentionally not using pytest directly as it leads to JAX out-of-memory'ing # https://github.com/patrick-kidger/lineax/blob/1909d190c1963d5f2d991508c1b2714f2266048b/tests/README.md checkPhase = '' runHook preCheck
${python.interpreter} -m tests
runHook postCheck '';
meta = { description = "Linear solvers in JAX and Equinox"; homepage = "https://github.com/patrick-kidger/lineax"; changelog = "https://github.com/patrick-kidger/lineax/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ GaetanLepage ]; };})