···11-{ buildPythonPackage, fetchFromGitHub, lib22-# propagatedBuildInputs33-, absl-py, numpy, opt-einsum44-# checkInputs55-, jaxlib, pytestCheckHook11+{ lib22+, absl-py33+, buildPythonPackage44+, fetchFromGitHub55+, jaxlib66+, numpy77+, opt-einsum88+, pytestCheckHook99+, pythonOlder1010+, scipy1111+, typing-extensions612}:713814buildPythonPackage rec {915 pname = "jax";1010- version = "0.2.21";1616+ version = "0.2.24";1717+ format = "setuptools";11181212- # Fetching from pypi doesn't allow us to run the test suite. See https://discourse.nixos.org/t/pythonremovetestsdir-hook-being-run-before-checkphase/14612/3.1919+ disabled = pythonOlder "3.7";2020+1321 src = fetchFromGitHub {1422 owner = "google";1523 repo = pname;1624 rev = "jax-v${version}";1717- sha256 = "05w157h6jv20k8w2gnmlxbycmzf24lr5v392q0c5v0qcql11q7pn";2525+ sha256 = "1mmn1m4mprpwqlb1smjfdy3f74zm9p3l9dhhn25x6jrcj2cgc5pi";1826 };19272028 # jaxlib is _not_ included in propagatedBuildInputs because there are2129 # different versions of jaxlib depending on the desired target hardware. The2230 # JAX project ships separate wheels for CPU, GPU, and TPU. Currently only the2331 # CPU wheel is packaged.2424- propagatedBuildInputs = [ absl-py numpy opt-einsum ];3232+ propagatedBuildInputs = [3333+ absl-py3434+ numpy3535+ opt-einsum3636+ scipy3737+ typing-extensions3838+ ];25392626- checkInputs = [ jaxlib pytestCheckHook ];4040+ checkInputs = [4141+ jaxlib4242+ pytestCheckHook4343+ ];4444+2745 # NOTE: Don't run the tests in the expiremental directory as they require flax2846 # which creates a circular dependency. See https://discourse.nixos.org/t/how-to-nix-ify-python-packages-with-circular-dependencies/14648/2.2947 # Not a big deal, this is how the JAX docs suggest running the test suite3048 # anyhow.3131- pytestFlagsArray = [ "-W ignore::DeprecationWarning" "tests/" ];4949+ pytestFlagsArray = [5050+ "-W ignore::DeprecationWarning"5151+ "tests/"5252+ ];5353+5454+ pythonImportsCheck = [5555+ "jax"5656+ ];32573358 meta = with lib; {3459 description = "Differentiate, compile, and transform Numpy code";3535- homepage = "https://github.com/google/jax";3636- license = licenses.asl20;6060+ homepage = "https://github.com/google/jax";6161+ license = licenses.asl20;3762 maintainers = with maintainers; [ samuela ];3863 };3964}