Skip to content

Commit acb3dd9

Browse files
committed
python311Packages.whispers: add missing deps, unbreak
1 parent d631d04 commit acb3dd9

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

pkgs/development/python-modules/whispers/default.nix

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
pytestCheckHook,
1414
pythonOlder,
1515
pyyaml,
16+
wrapt,
17+
semgrep,
1618
setuptools,
1719
}:
1820

@@ -35,6 +37,12 @@ buildPythonPackage rec {
3537
--replace-fail '"pytest-runner"' ""
3638
'';
3739

40+
pythonRelaxDeps = [
41+
"lxml"
42+
"pyyaml"
43+
"semgrep"
44+
];
45+
3846
build-system = [ setuptools ];
3947

4048
dependencies = [
@@ -46,14 +54,25 @@ buildPythonPackage rec {
4654
luhn
4755
lxml
4856
pyyaml
57+
wrapt
58+
semgrep
4959
];
5060

5161
nativeCheckInputs = [
5262
pytest-mock
5363
pytestCheckHook
5464
];
5565

66+
disabledTestPaths = [
67+
# pinning tests highly sensitive to semgrep version
68+
"tests/unit/plugins/test_semgrep.py"
69+
];
70+
5671
preCheck = ''
72+
# pinning test highly sensitive to semgrep version
73+
substituteInPlace tests/unit/test_main.py \
74+
--replace-fail '("--ast", 421),' ""
75+
5776
# Some tests need the binary available in PATH
5877
export PATH=$out/bin:$PATH
5978
'';

0 commit comments

Comments
 (0)