lol

wafw00f: refactor (#361433)

authored by

Fabian Affolter and committed by
GitHub
45e94617 9bde0b12

+14 -12
+14 -12
pkgs/by-name/wa/wafw00f/package.nix
··· 1 - { lib 2 - , fetchFromGitHub 3 - , python3 1 + { 2 + lib, 3 + fetchFromGitHub, 4 + python3, 4 5 }: 5 6 6 7 python3.pkgs.buildPythonApplication rec { 7 8 pname = "wafw00f"; 8 9 version = "2.2.0"; 9 - format = "setuptools"; 10 + pyproject = true; 10 11 11 12 src = fetchFromGitHub { 12 13 owner = "EnableSecurity"; 13 - repo = pname; 14 + repo = "wafw00f"; 14 15 rev = "refs/tags/v${version}"; 15 - sha256 = "sha256-wJZ1/aRMFpE6Q5YAtGxXwxe2G9H/de+l3l0C5rwEWA8="; 16 + hash = "sha256-wJZ1/aRMFpE6Q5YAtGxXwxe2G9H/de+l3l0C5rwEWA8="; 16 17 }; 17 18 18 - propagatedBuildInputs = with python3.pkgs; [ 19 + build-system = with python3.pkgs; [ setuptools ]; 20 + 21 + dependencies = with python3.pkgs; [ 19 22 requests 20 23 pluginbase 21 24 ]; ··· 23 26 # Project has no tests 24 27 doCheck = false; 25 28 26 - pythonImportsCheck = [ 27 - "wafw00f" 28 - ]; 29 + pythonImportsCheck = [ "wafw00f" ]; 29 30 30 31 meta = with lib; { 31 32 description = "Tool to identify and fingerprint Web Application Firewalls (WAF)"; 32 - mainProgram = "wafw00f"; 33 33 homepage = "https://github.com/EnableSecurity/wafw00f"; 34 - license = with licenses; [ bsd3 ]; 34 + changelog = "https://github.com/EnableSecurity/wafw00f/releases/tag/v${version}"; 35 + license = licenses.bsd3; 35 36 maintainers = with maintainers; [ fab ]; 37 + mainProgram = "wafw00f"; 36 38 }; 37 39 }