depot/third_party/nixpkgs/pkgs/development/python-modules/equinox/default.nix
Default email b5f92a349c Project import generated by Copybara.
GitOrigin-RevId: 7c9cc5a6e5d38010801741ac830a3f8fd667a7a0
2023-10-19 15:55:26 +02:00

51 lines
970 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, hatchling
, jax
, jaxlib
, jaxtyping
, typing-extensions
, beartype
, optax
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "equinox";
version = "0.11.1";
pyproject = true;
src = fetchFromGitHub {
owner = "patrick-kidger";
repo = "equinox";
rev = "refs/tags/v${version}";
hash = "sha256-iYVAbUIZG90kgWger+M+DZmS/kQ3nEPXQFU+90lHgK0=";
};
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 ];
};
}