mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-04 11:15:12 +00:00
39e09b1673
Diff: https://github.com/patrick-kidger/jaxtyping/compare/v0.2.33...v0.2.36 Changelog: https://github.com/patrick-kidger/jaxtyping/releases/tag/v0.2.36
69 lines
1.4 KiB
Nix
69 lines
1.4 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
|
|
# build-system
|
|
hatchling,
|
|
|
|
# tests
|
|
cloudpickle,
|
|
equinox,
|
|
ipython,
|
|
jax,
|
|
jaxlib,
|
|
pytestCheckHook,
|
|
tensorflow,
|
|
torch,
|
|
}:
|
|
|
|
let
|
|
self = buildPythonPackage rec {
|
|
pname = "jaxtyping";
|
|
version = "0.2.36";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "google";
|
|
repo = "jaxtyping";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-TXhHh6Nka9TOnfFPaNyHmLdTkhzyFEY0mLSfoDf9KQc=";
|
|
};
|
|
|
|
build-system = [ hatchling ];
|
|
|
|
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
|