lol

python310Packages.ffcv: fix build (#170158)

* python310Packages.ffcv: fix pkg-config usage

Package does not use the pkgconfig python packages but ships its own method
which execs pkg-config

* python310Packages.onnx: ignore failing test

* python310Packages.pytorch-pfn-extras: fix build

* python310Packages.pytorch-pfn-extras: move comment out of multi line string

Co-authored-by: Samuel Ainsworth <skainsworth@gmail.com>

* Update pkgs/development/python-modules/pytorch-pfn-extras/default.nix

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>

Co-authored-by: Samuel Ainsworth <skainsworth@gmail.com>

authored by

Sandro
Samuel Ainsworth
Sandro
and committed by
GitHub
293a5455 b8bea2b4

+25 -4
+2 -2
pkgs/development/python-modules/ffcv/default.nix
··· 5 5 , numba 6 6 , opencv4 7 7 , pandas 8 - , pkgconfig 8 + , pkg-config 9 9 , pytorch-pfn-extras 10 10 , terminaltables 11 11 , tqdm ··· 35 35 --replace "'webdataset'," "" 36 36 ''; 37 37 38 - nativeBuildInputs = [ pkgconfig ]; 38 + nativeBuildInputs = [ pkg-config ]; 39 39 buildInputs = [ libjpeg ]; 40 40 propagatedBuildInputs = [ opencv4 numba pandas pytorch-pfn-extras terminaltables tqdm ]; 41 41
+5
pkgs/development/python-modules/onnx/default.nix
··· 55 55 export MAX_JOBS=$NIX_BUILD_CORES 56 56 ''; 57 57 58 + disabledTestPaths = [ 59 + # Unexpected output fields from running code: {'stderr'} 60 + "onnx/examples/np_array_tensorproto.ipynb" 61 + ]; 62 + 58 63 # The executables are just utility scripts that aren't too important 59 64 postInstall = '' 60 65 rm -r $out/bin
+18 -2
pkgs/development/python-modules/pytorch-pfn-extras/default.nix
··· 3 3 , lib 4 4 , numpy 5 5 , onnx 6 + , packaging 6 7 , pytestCheckHook 7 8 , pytorch 9 + , torchvision 8 10 , typing-extensions 9 11 }: 10 12 ··· 19 21 sha256 = "sha256-gB575ZKXZRAy5K5CkBtfG6KG1yQ9WDREIobsy43CEOc="; 20 22 }; 21 23 22 - propagatedBuildInputs = [ numpy pytorch typing-extensions ]; 24 + propagatedBuildInputs = [ numpy packaging pytorch typing-extensions ]; 23 25 24 - checkInputs = [ onnx pytestCheckHook ]; 26 + checkInputs = [ onnx pytestCheckHook torchvision ]; 27 + 28 + # ignore all pytest warnings 29 + preCheck = '' 30 + rm pytest.ini 31 + ''; 25 32 26 33 pythonImportsCheck = [ "pytorch_pfn_extras" ]; 27 34 28 35 disabledTestPaths = [ 29 36 # Requires optuna which is currently (2022-02-16) marked as broken. 30 37 "tests/pytorch_pfn_extras_tests/test_config_types.py" 38 + 39 + # requires onnxruntime which was removed because of poor maintainability 40 + # See https://github.com/NixOS/nixpkgs/pull/105951 https://github.com/NixOS/nixpkgs/pull/155058 41 + "tests/pytorch_pfn_extras_tests/onnx_tests/test_export.py" 42 + "tests/pytorch_pfn_extras_tests/onnx_tests/test_torchvision.py" 43 + "tests/pytorch_pfn_extras_tests/onnx_tests/utils.py" 44 + 45 + # RuntimeError: No Op registered for Gradient with domain_version of 9 46 + "tests/pytorch_pfn_extras_tests/onnx_tests/test_grad.py" 31 47 32 48 # Requires CUDA access which is not possible in the nix environment. 33 49 "tests/pytorch_pfn_extras_tests/cuda_tests/test_allocator.py"