lol
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request #264463 from GaetanLepage/objax

python311Packages.objax: disable tests to fix build

authored by

OTABI Tomoya and committed by
GitHub
0dbb7622 89fd59c1

+33 -3
+33 -3
pkgs/development/python-modules/objax/default.nix
··· 1 1 { lib 2 + , buildPythonPackage 2 3 , fetchFromGitHub 3 - , buildPythonPackage 4 + , fetchpatch 5 + , jaxlib 4 6 , jax 5 - , jaxlib 6 7 , numpy 7 8 , parameterized 8 9 , pillow 9 10 , scipy 10 11 , tensorboard 12 + , keras 13 + , pytestCheckHook 14 + , tensorflow 11 15 }: 12 16 13 17 buildPythonPackage rec { ··· 17 21 src = fetchFromGitHub { 18 22 owner = "google"; 19 23 repo = "objax"; 20 - rev = "v${version}"; 24 + rev = "refs/tags/v${version}"; 21 25 hash = "sha256-1/XmxFZfU+XMD0Mlcv4xTUYZDwltAx1bZOlPuKWQQC0="; 22 26 }; 27 + 28 + patches = [ 29 + (fetchpatch { # https://github.com/google/objax/pull/266 30 + url = "https://github.com/google/objax/pull/266/commits/a1bcb71ebd92c94fec98222349d7cd57048e541d.patch"; 31 + hash = "sha256-MO9/LAxbghjhRU8sbYWm3xa4RPuU+5m74YU3n3hJ09s="; 32 + }) 33 + ]; 23 34 24 35 # Avoid propagating the dependency on `jaxlib`, see 25 36 # https://github.com/NixOS/nixpkgs/issues/156767 ··· 38 49 39 50 pythonImportsCheck = [ 40 51 "objax" 52 + ]; 53 + 54 + # This is necessay to ignore the presence of two protobufs version (tensorflow is bringing an 55 + # older version). 56 + catchConflicts = false; 57 + 58 + nativeCheckInputs = [ 59 + keras 60 + pytestCheckHook 61 + tensorflow 62 + ]; 63 + 64 + pytestFlagsArray = [ 65 + "tests/*.py" 66 + ]; 67 + 68 + disabledTests = [ 69 + # Test requires internet access for prefetching some weights 70 + "test_pretrained_keras_weight_0_ResNet50V2" 41 71 ]; 42 72 43 73 meta = with lib; {