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