python312Packages.osmnx: 1.9.3 → 2.0.0 (#360529)
[NixPkgs.git] / pkgs / development / python-modules / jaxtyping / default.nix
blob22d5e9ba244c8d398319a86c7b673a7119f398a8
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
6   # build-system
7   hatchling,
9   # tests
10   cloudpickle,
11   equinox,
12   ipython,
13   jax,
14   jaxlib,
15   pytestCheckHook,
16   tensorflow,
17   torch,
20 let
21   self = buildPythonPackage rec {
22     pname = "jaxtyping";
23     version = "0.2.36";
24     pyproject = true;
26     src = fetchFromGitHub {
27       owner = "google";
28       repo = "jaxtyping";
29       rev = "refs/tags/v${version}";
30       hash = "sha256-TXhHh6Nka9TOnfFPaNyHmLdTkhzyFEY0mLSfoDf9KQc=";
31     };
33     build-system = [ hatchling ];
35     pythonImportsCheck = [ "jaxtyping" ];
37     nativeCheckInputs = [
38       cloudpickle
39       equinox
40       ipython
41       jax
42       jaxlib
43       pytestCheckHook
44       tensorflow
45       torch
46     ];
48     doCheck = false;
50     # Enable tests via passthru to avoid cyclic dependency with equinox.
51     passthru.tests = {
52       check = self.overridePythonAttrs {
53         # We disable tests because they complain about the version of typeguard being too new.
54         doCheck = false;
55         catchConflicts = false;
56       };
57     };
59     meta = {
60       description = "Type annotations and runtime checking for JAX arrays and PyTrees";
61       homepage = "https://github.com/google/jaxtyping";
62       changelog = "https://github.com/patrick-kidger/jaxtyping/releases/tag/v${version}";
63       license = lib.licenses.mit;
64       maintainers = with lib.maintainers; [ GaetanLepage ];
65     };
66   };
68 self