diff --git a/pkgs/by-name/ku/kube-hunter/package.nix b/pkgs/by-name/ku/kube-hunter/package.nix index 4635d1a51ed9..9669979d65a7 100644 --- a/pkgs/by-name/ku/kube-hunter/package.nix +++ b/pkgs/by-name/ku/kube-hunter/package.nix @@ -7,27 +7,26 @@ python3.pkgs.buildPythonApplication rec { pname = "kube-hunter"; version = "0.6.8"; - format = "setuptools"; + pyproject = true; src = fetchFromGitHub { owner = "aquasecurity"; repo = "kube-hunter"; tag = "v${version}"; - sha256 = "sha256-+M8P/VSF9SKPvq+yNPjokyhggY7hzQ9qLLhkiTNbJls="; + hash = "sha256-+M8P/VSF9SKPvq+yNPjokyhggY7hzQ9qLLhkiTNbJls="; }; - nativeBuildInputs = with python3.pkgs; [ - setuptools-scm - ]; + pythonRemoveDeps = [ "future" ]; - propagatedBuildInputs = with python3.pkgs; [ + build-system = with python3.pkgs; [ setuptools-scm ]; + + dependencies = with python3.pkgs; [ netaddr netifaces requests prettytable urllib3 ruamel-yaml - future packaging pluggy kubernetes @@ -45,9 +44,7 @@ python3.pkgs.buildPythonApplication rec { --replace "kubernetes==12.0.1" "kubernetes" ''; - pythonImportsCheck = [ - "kube_hunter" - ]; + pythonImportsCheck = [ "kube_hunter" ]; disabledTests = [ # Test is out-dated @@ -57,7 +54,8 @@ python3.pkgs.buildPythonApplication rec { meta = with lib; { description = "Tool to search issues in Kubernetes clusters"; homepage = "https://github.com/aquasecurity/kube-hunter"; - license = with licenses; [ asl20 ]; + changelog = "https://github.com/aquasecurity/kube-hunter/releases/tag/${src.tag}"; + license = licenses.asl20; maintainers = with maintainers; [ fab ]; mainProgram = "kube-hunter"; };