Commit 335d81bf authored by Bad3r's avatar Bad3r
Browse files

python3Packages.wfuzz: tidy style nits

- Sort dependencies alphabetically (pyparsing/setuptools/six were out of
  order relative to nixpkgs Python convention).
- Note that the imp -> importlib patch is needed for Python >= 3.12, not
  just 3.12, since imp stays removed in 3.13+.
- Use the canonical "v\${version}" form for the changelog URL instead of
  reaching through finalAttrs.src.tag.
parent ba1de2fa
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -29,7 +29,7 @@ buildPythonPackage (finalAttrs: {
  };

  patches = [
    # replace use of imp module for Python 3.12
    # replace use of imp module for Python >= 3.12
    # https://github.com/xmendez/wfuzz/pull/365
    (fetchpatch2 {
      url = "https://github.com/xmendez/wfuzz/commit/f4c028b9ada4c36dabf3bc752f69f6ddc110920f.patch?full_index=1";
@@ -48,9 +48,9 @@ buildPythonPackage (finalAttrs: {
    legacy-cgi
    netaddr # src/wfuzz/plugins/payloads/{iprange,ipnet}.py
    pycurl
    six
    setuptools
    pyparsing
    setuptools
    six
  ]
  ++ lib.optionals stdenv.hostPlatform.isWindows [ colorama ];