python3Packages.onnx: relax protobuf version requirements, add missing pytest-runner dependency
This commit is contained in:
parent
dfcb2e5f15
commit
4e0ad66f8c
1 changed files with 6 additions and 2 deletions
|
@ -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 = ''
|
||||||
|
|
Loading…
Reference in a new issue