python3Packages.onnx: relax protobuf version requirements, add missing pytest-runner dependency

This commit is contained in:
Lein Matsumaru
2022-10-24 09:12:13 +02:00
committed by Frederik Rietdijk
parent dfcb2e5f15
commit 4e0ad66f8c
@@ -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 = ''