Merge pull request #264463 from GaetanLepage/objax
python311Packages.objax: disable tests to fix build
This commit is contained in:
commit
0dbb76220d
@ -1,13 +1,17 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, fetchFromGitHub
|
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, jax
|
, fetchFromGitHub
|
||||||
|
, fetchpatch
|
||||||
, jaxlib
|
, jaxlib
|
||||||
|
, jax
|
||||||
, numpy
|
, numpy
|
||||||
, parameterized
|
, parameterized
|
||||||
, pillow
|
, pillow
|
||||||
, scipy
|
, scipy
|
||||||
, tensorboard
|
, tensorboard
|
||||||
|
, keras
|
||||||
|
, pytestCheckHook
|
||||||
|
, tensorflow
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
@ -17,10 +21,17 @@ buildPythonPackage rec {
|
|||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "google";
|
owner = "google";
|
||||||
repo = "objax";
|
repo = "objax";
|
||||||
rev = "v${version}";
|
rev = "refs/tags/v${version}";
|
||||||
hash = "sha256-1/XmxFZfU+XMD0Mlcv4xTUYZDwltAx1bZOlPuKWQQC0=";
|
hash = "sha256-1/XmxFZfU+XMD0Mlcv4xTUYZDwltAx1bZOlPuKWQQC0=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
(fetchpatch { # https://github.com/google/objax/pull/266
|
||||||
|
url = "https://github.com/google/objax/pull/266/commits/a1bcb71ebd92c94fec98222349d7cd57048e541d.patch";
|
||||||
|
hash = "sha256-MO9/LAxbghjhRU8sbYWm3xa4RPuU+5m74YU3n3hJ09s=";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
# 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 = [
|
||||||
@ -40,6 +51,25 @@ buildPythonPackage rec {
|
|||||||
"objax"
|
"objax"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# This is necessay to ignore the presence of two protobufs version (tensorflow is bringing an
|
||||||
|
# older version).
|
||||||
|
catchConflicts = false;
|
||||||
|
|
||||||
|
nativeCheckInputs = [
|
||||||
|
keras
|
||||||
|
pytestCheckHook
|
||||||
|
tensorflow
|
||||||
|
];
|
||||||
|
|
||||||
|
pytestFlagsArray = [
|
||||||
|
"tests/*.py"
|
||||||
|
];
|
||||||
|
|
||||||
|
disabledTests = [
|
||||||
|
# Test requires internet access for prefetching some weights
|
||||||
|
"test_pretrained_keras_weight_0_ResNet50V2"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Objax is a machine learning framework that provides an Object Oriented layer for JAX.";
|
description = "Objax is a machine learning framework that provides an Object Oriented layer for JAX.";
|
||||||
homepage = "https://github.com/google/objax";
|
homepage = "https://github.com/google/objax";
|
||||||
|
Loading…
Reference in New Issue
Block a user