kube-hunter: remove future

This commit is contained in:
Fabian Affolter 2025-08-14 18:34:28 +02:00
parent 5e67e7be9f
commit 5309e14629

View File

@ -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";
};