python311Packages.whispers: add missing deps, unbreak

This commit is contained in:
Peder Bergebakken Sundt 2024-11-08 15:25:37 +01:00
parent d631d04536
commit acb3dd9909

View File

@ -13,6 +13,8 @@
pytestCheckHook, pytestCheckHook,
pythonOlder, pythonOlder,
pyyaml, pyyaml,
wrapt,
semgrep,
setuptools, setuptools,
}: }:
@ -35,6 +37,12 @@ buildPythonPackage rec {
--replace-fail '"pytest-runner"' "" --replace-fail '"pytest-runner"' ""
''; '';
pythonRelaxDeps = [
"lxml"
"pyyaml"
"semgrep"
];
build-system = [ setuptools ]; build-system = [ setuptools ];
dependencies = [ dependencies = [
@ -46,6 +54,8 @@ buildPythonPackage rec {
luhn luhn
lxml lxml
pyyaml pyyaml
wrapt
semgrep
]; ];
nativeCheckInputs = [ nativeCheckInputs = [
@ -53,7 +63,16 @@ buildPythonPackage rec {
pytestCheckHook pytestCheckHook
]; ];
disabledTestPaths = [
# pinning tests highly sensitive to semgrep version
"tests/unit/plugins/test_semgrep.py"
];
preCheck = '' preCheck = ''
# pinning test highly sensitive to semgrep version
substituteInPlace tests/unit/test_main.py \
--replace-fail '("--ast", 421),' ""
# Some tests need the binary available in PATH # Some tests need the binary available in PATH
export PATH=$out/bin:$PATH export PATH=$out/bin:$PATH
''; '';