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

This commit is contained in:
Lein Matsumaru 2022-10-22 09:31:26 +00:00 committed by Frederik Rietdijk
parent dfcb2e5f15
commit 4e0ad66f8c

View file

@ -11,6 +11,8 @@
, six , six
, tabulate , tabulate
, typing-extensions , typing-extensions
, pythonRelaxDepsHook
, pytest-runner
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@ -27,8 +29,11 @@ buildPythonPackage rec {
nativeBuildInputs = [ nativeBuildInputs = [
cmake cmake
pythonRelaxDepsHook
]; ];
pythonRelaxDeps = [ "protobuf" ];
propagatedBuildInputs = [ propagatedBuildInputs = [
protobuf protobuf
numpy numpy
@ -39,6 +44,7 @@ buildPythonPackage rec {
checkInputs = [ checkInputs = [
nbval nbval
pytestCheckHook pytestCheckHook
pytest-runner
tabulate tabulate
]; ];
@ -47,8 +53,6 @@ buildPythonPackage rec {
patchShebangs tools/protoc-gen-mypy.py patchShebangs tools/protoc-gen-mypy.py
substituteInPlace tools/protoc-gen-mypy.sh.in \ substituteInPlace tools/protoc-gen-mypy.sh.in \
--replace "/bin/bash" "${bash}/bin/bash" --replace "/bin/bash" "${bash}/bin/bash"
sed -i '/pytest-runner/d' setup.py
''; '';
preBuild = '' preBuild = ''