depot/third_party/nixpkgs/pkgs/development/python-modules/equinox/default.nix
Default email e7ec2969af Project import generated by Copybara.
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
2024-01-13 09:15:51 +01:00

57 lines
1.1 KiB
Nix

{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, hatchling
, jax
, jaxlib
, jaxtyping
, typing-extensions
, beartype
, optax
, pytest-xdist
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "equinox";
version = "0.11.3";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "patrick-kidger";
repo = "equinox";
rev = "refs/tags/v${version}";
hash = "sha256-la3gPfwQ2pxfZoEikn9uG+Pc3PKafgEgxZ8oVQEm9YM=";
};
nativeBuildInputs = [
hatchling
];
propagatedBuildInputs = [
jax
jaxlib
jaxtyping
typing-extensions
];
nativeCheckInputs = [
beartype
optax
pytest-xdist
pytestCheckHook
];
pythonImportsCheck = [ "equinox" ];
meta = with lib; {
description = "A 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/v${version}";
homepage = "https://github.com/patrick-kidger/equinox";
license = licenses.asl20;
maintainers = with maintainers; [ GaetanLepage ];
};
}