Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
76 lines
1.5 KiB
Nix
76 lines
1.5 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
|
|
# build-system
|
|
hatchling,
|
|
|
|
# dependencies
|
|
wadler-lindig,
|
|
|
|
# tests
|
|
cloudpickle,
|
|
equinox,
|
|
ipython,
|
|
jax,
|
|
jaxlib,
|
|
pytestCheckHook,
|
|
tensorflow,
|
|
torch,
|
|
}:
|
|
|
|
let
|
|
self = buildPythonPackage rec {
|
|
pname = "jaxtyping";
|
|
version = "0.3.3";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "google";
|
|
repo = "jaxtyping";
|
|
tag = "v${version}";
|
|
hash = "sha256-92wvnlaGVppu8qNo8f7zw7be788hj8Mdi8KDfNQllwU=";
|
|
};
|
|
|
|
build-system = [ hatchling ];
|
|
|
|
dependencies = [
|
|
wadler-lindig
|
|
];
|
|
|
|
pythonImportsCheck = [ "jaxtyping" ];
|
|
|
|
nativeCheckInputs = [
|
|
cloudpickle
|
|
equinox
|
|
ipython
|
|
jax
|
|
jaxlib
|
|
pytestCheckHook
|
|
tensorflow
|
|
torch
|
|
];
|
|
|
|
doCheck = false;
|
|
|
|
# Enable tests via passthru to avoid cyclic dependency with equinox.
|
|
passthru.tests = {
|
|
check = self.overridePythonAttrs {
|
|
# We disable tests because they complain about the version of typeguard being too new.
|
|
doCheck = false;
|
|
catchConflicts = false;
|
|
};
|
|
};
|
|
|
|
meta = {
|
|
description = "Type annotations and runtime checking for JAX arrays and PyTrees";
|
|
homepage = "https://github.com/google/jaxtyping";
|
|
changelog = "https://github.com/patrick-kidger/jaxtyping/releases/tag/v${version}";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ GaetanLepage ];
|
|
};
|
|
};
|
|
in
|
|
self
|