depot/third_party/nixpkgs/pkgs/development/python-modules/equinox/default.nix
Default email d5f4a57cbf Project import generated by Copybara.
GitOrigin-RevId: ce5e4a6ef2e59d89a971bc434ca8ca222b9c7f5e
2023-08-10 09:59:29 +02:00

49 lines
953 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, hatchling
, jax
, jaxlib
, jaxtyping
, typing-extensions
, beartype
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "equinox";
version = "0.10.11";
format = "pyproject";
src = fetchFromGitHub {
owner = "patrick-kidger";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-JffuPplIROPog29FBsWH9cQHSkrFKuXjaTjjEwIqW/0=";
};
nativeBuildInputs = [
hatchling
];
propagatedBuildInputs = [
jax
jaxlib
jaxtyping
typing-extensions
];
nativeCheckInputs = [
beartype
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 ];
};
}