15 # onnxruntime requires an older protobuf.
16 # Doing an override in protobuf in the python-packages set
17 # can give you a functioning Python package but note not
18 # all Python packages will be compatible then.
20 # Because protobuf is not always needed we remove it
21 # as a runtime dependency from our wheel.
23 # We do include here the non-Python protobuf so the shared libs
24 # link correctly. If you do also want to include the Python
25 # protobuf, you can add it to your Python env, but be aware
26 # the version likely mismatches with what is used here.
29 inherit (onnxruntime) pname version;
31 src = onnxruntime.dist;
40 ] ++ lib.optionals stdenv.isLinux [
44 # This project requires fairly large dependencies such as sympy which we really don't always need.
51 # Libraries are not linked correctly.
56 ] ++ lib.optionals onnxruntime.passthru.cudaSupport (with onnxruntime.passthru.cudaPackages; [
57 libcublas # libcublasLt.so.XX libcublas.so.XX
58 libcurand # libcurand.so.XX
59 libcufft # libcufft.so.XX
61 cuda_cudart # libcudart.so.XX
64 propagatedBuildInputs = [
73 meta = onnxruntime.meta // { maintainers = with lib.maintainers; [ fridh ]; };