diff options
author | Lein Matsumaru <appleprincess@appleprincess.io> | 2022-10-22 09:31:26 +0000 |
---|---|---|
committer | Frederik Rietdijk <freddyrietdijk@fridh.nl> | 2022-10-24 09:12:13 +0200 |
commit | 4e0ad66f8cbec4a69c1d0e82ec775ff1fc8550b1 (patch) | |
tree | 18c960b3125940307d6d30a45eef4a745e8c8412 | |
parent | dfcb2e5f1570993af3b31058ea455dd25d42b938 (diff) |
python3Packages.onnx: relax protobuf version requirements, add missing pytest-runner dependency
-rw-r--r-- | pkgs/development/python-modules/onnx/default.nix | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/pkgs/development/python-modules/onnx/default.nix b/pkgs/development/python-modules/onnx/default.nix index d5db23bc2b0b8..a266fb4e6b44d 100644 --- a/pkgs/development/python-modules/onnx/default.nix +++ b/pkgs/development/python-modules/onnx/default.nix @@ -11,6 +11,8 @@ , six , tabulate , typing-extensions +, pythonRelaxDepsHook +, pytest-runner }: buildPythonPackage rec { @@ -27,8 +29,11 @@ buildPythonPackage rec { nativeBuildInputs = [ cmake + pythonRelaxDepsHook ]; + pythonRelaxDeps = [ "protobuf" ]; + propagatedBuildInputs = [ protobuf numpy @@ -39,6 +44,7 @@ buildPythonPackage rec { checkInputs = [ nbval pytestCheckHook + pytest-runner tabulate ]; @@ -47,8 +53,6 @@ buildPythonPackage rec { patchShebangs tools/protoc-gen-mypy.py substituteInPlace tools/protoc-gen-mypy.sh.in \ --replace "/bin/bash" "${bash}/bin/bash" - - sed -i '/pytest-runner/d' setup.py ''; preBuild = '' |