Skip to content

Commit

Permalink
wapiti: remove condition for importlib-metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
fabaff committed Jul 3, 2022
1 parent fe04d2c commit 07729df
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions pkgs/tools/security/wapiti/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@ python3.pkgs.buildPythonApplication rec {
sha256 = "sha256-nGAG+7FqEktc55i5Q2urKh52vm/i6kX4kvS2AVUAUjA=";
};

nativeBuildInputs = with python3.pkgs; [
pytest-runner
];

propagatedBuildInputs = with python3.pkgs; [
aiocache
aiosqlite
Expand All @@ -30,17 +26,16 @@ python3.pkgs.buildPythonApplication rec {
httpcore
httpx
humanize
importlib-metadata
loguru
Mako
markupsafe
six
sqlalchemy
tld
yaswfp
] ++ lib.optionals (python3.pythonOlder "3.8") [
importlib-metadata
] ++ httpx.optional-dependencies.brotli
++ httpx.optional-dependencies.socks;
++ httpx.optional-dependencies.socks;

checkInputs = with python3.pkgs; [
respx
Expand All @@ -51,6 +46,8 @@ python3.pkgs.buildPythonApplication rec {
postPatch = ''
# Ignore pinned versions
sed -i -e "s/==[0-9.]*//;s/>=[0-9.]*//" setup.py
substituteInPlace setup.py \
--replace '"pytest-runner"' ""
substituteInPlace setup.cfg \
--replace " --cov --cov-report=xml" ""
'';
Expand Down Expand Up @@ -119,8 +116,9 @@ python3.pkgs.buildPythonApplication rec {
# TypeError: Expected bytes or bytes-like object got: <class 'str'>
"test_persister_upload"
];

disabledTestPaths = [
# requires sslyze
# Requires sslyze which is obsolete and was removed
"tests/attack/test_mod_ssl.py"
];

Expand Down

0 comments on commit 07729df

Please sign in to comment.