25 self = buildPythonPackage rec {
30 disabled = pythonOlder "3.9";
32 src = fetchFromGitHub {
35 rev = "refs/tags/v${version}";
36 hash = "sha256-zkB8/+0PmBKDFhj9dd8QZ5Euglm+W3BBUM4dwFUYYW8=";
39 build-system = [ hatchling ];
41 dependencies = [ typeguard ];
43 pythonRelaxDeps = [ "typeguard" ];
58 # Enable tests via passthru to avoid cyclic dependency with equinox.
60 check = self.overridePythonAttrs {
61 # We disable tests because they complain about the version of typeguard being too new.
63 catchConflicts = false;
67 pythonImportsCheck = [ "jaxtyping" ];
70 description = "Type annotations and runtime checking for JAX arrays and PyTrees";
71 homepage = "https://github.com/google/jaxtyping";
72 changelog = "https://github.com/patrick-kidger/jaxtyping/releases/tag/v${version}";
73 license = lib.licenses.mit;
74 maintainers = with lib.maintainers; [ GaetanLepage ];