Merge pull request #297146 from GaetanLepage/chex

python3Packages.jax: towards fixing dependencies

Someone 4c2f2f1a ebde3065

Changed files
+22 -8
pkgs
development
python-modules
distrax
equinox
flax
optax
+3
pkgs/development/python-modules/distrax/default.nix
···
homepage = "https://github.com/deepmind/distrax";
license = licenses.asl20;
maintainers = with maintainers; [ onny ];
+
# Several tests fail with:
+
# AssertionError: [Chex] Assertion assert_type failed: Error in type compatibility check
+
broken = true;
};
}
+5
pkgs/development/python-modules/equinox/default.nix
···
pythonImportsCheck = [ "equinox" ];
+
disabledTests = [
+
# Failed: DID NOT WARN. No warnings of type (<class 'UserWarning'>,) were emitted.
+
"test_tracetime"
+
];
+
meta = with lib; {
description = "A JAX library based around a simple idea: represent parameterised functions (such as neural networks) as PyTrees";
changelog = "https://github.com/patrick-kidger/equinox/releases/tag/v${version}";
+4 -3
pkgs/development/python-modules/flax/default.nix
···
buildPythonPackage rec {
pname = "flax";
-
version = "0.8.1";
+
version = "0.8.2";
pyproject = true;
-
disabled = pythonOlder "3.8";
+
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "google";
repo = "flax";
rev = "refs/tags/v${version}";
-
hash = "sha256-3UzMSJoKw+V1WLBJ+Zf7aF7CDNBsvWnRUfNgb3K4v1A=";
+
hash = "sha256-UABgJGe1grUSkwOJpjeIoFqhXsqG//HlC1YyYPxXV+g=";
};
nativeBuildInputs = [
···
# `tensorflow_datasets`, `vocabulary`) so the benefits of trying to run them
# would be limited anyway.
"examples/*"
+
"flax/experimental/nnx/examples/*"
# See https://github.com/google/flax/issues/3232.
"tests/jax_utils_test.py"
# Requires tree
+10 -5
pkgs/development/python-modules/optax/default.nix
···
{ lib
, absl-py
, buildPythonPackage
+
, flit-core
, chex
, fetchFromGitHub
, jaxlib
···
buildPythonPackage rec {
pname = "optax";
-
version = "0.2.1";
-
format = "setuptools";
+
version = "0.2.2";
+
pyproject = true;
-
disabled = pythonOlder "3.7";
+
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "deepmind";
-
repo = pname;
+
repo = "optax";
rev = "refs/tags/v${version}";
-
hash = "sha256-vimsVZV5Z11euLxsu998pMQZ0hG3xl96D3h9iONtl/E=";
+
hash = "sha256-sBiKUuQR89mttc9Njrh1aeUJOYdlcF7Nlj3/+Y7OMb4=";
};
outputs = [
"out"
"testsout"
+
];
+
+
nativeBuildInputs = [
+
flit-core
];
buildInputs = [