Merge pull request #290167 from fabaff/objax-fix

python311Packages.objax: disable failing tests
This commit is contained in:
Fabian Affolter 2024-02-20 17:58:36 +01:00 committed by GitHub
commit d44a62d198
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2,22 +2,26 @@
, buildPythonPackage
, fetchFromGitHub
, fetchpatch
, jaxlib
, jax
, jaxlib
, keras
, numpy
, parameterized
, pillow
, scipy
, tensorboard
, keras
, pytestCheckHook
, pythonOlder
, scipy
, setuptools
, tensorboard
, tensorflow
}:
buildPythonPackage rec {
pname = "objax";
version = "1.8.0";
format = "setuptools";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "google";
@ -26,6 +30,10 @@ buildPythonPackage rec {
hash = "sha256-WD+pmR8cEay4iziRXqF3sHUzCMBjmLJ3wZ3iYOD+hzk=";
};
nativeBuildInputs = [
setuptools
];
# Avoid propagating the dependency on `jaxlib`, see
# https://github.com/NixOS/nixpkgs/issues/156767
buildInputs = [
@ -62,11 +70,14 @@ buildPythonPackage rec {
disabledTests = [
# Test requires internet access for prefetching some weights
"test_pretrained_keras_weight_0_ResNet50V2"
# ModuleNotFoundError: No module named 'tree'
"TestResNetV2Pretrained"
];
meta = with lib; {
description = "Objax is a machine learning framework that provides an Object Oriented layer for JAX.";
description = "Machine learning framework that provides an Object Oriented layer for JAX";
homepage = "https://github.com/google/objax";
changelog = "https://github.com/google/objax/releases/tag/v${version}";
license = licenses.asl20;
maintainers = with maintainers; [ ndl ];
};