File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed
pkgs/development/python-modules/whispers Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change 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 '' ;
You can’t perform that action at this time.
0 commit comments