mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-06 22:03:13 +00:00
8056f9250c
The setuptools-scm packages gained a setup hook, that sets it to the derivation version automatically, so setting it to that manually has become redundant. This also affects downstream consumers of setuptools-scm, like hatch-vcs or flit-scm.
63 lines
1.2 KiB
Nix
63 lines
1.2 KiB
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, python3
|
|
}:
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
pname = "kube-hunter";
|
|
version = "0.6.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "aquasecurity";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
sha256 = "sha256-+M8P/VSF9SKPvq+yNPjokyhggY7hzQ9qLLhkiTNbJls=";
|
|
};
|
|
|
|
nativeBuildInputs = with python3.pkgs; [
|
|
setuptools-scm
|
|
];
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
netaddr
|
|
netifaces
|
|
requests
|
|
prettytable
|
|
urllib3
|
|
ruamel-yaml
|
|
future
|
|
packaging
|
|
pluggy
|
|
kubernetes
|
|
];
|
|
|
|
nativeCheckInputs = with python3.pkgs; [
|
|
pytestCheckHook
|
|
requests-mock
|
|
];
|
|
|
|
postPatch = ''
|
|
substituteInPlace setup.cfg \
|
|
--replace "dataclasses" "" \
|
|
--replace "kubernetes==12.0.1" "kubernetes" \
|
|
--replace "--cov=kube_hunter" ""
|
|
'';
|
|
|
|
pythonImportsCheck = [
|
|
"kube_hunter"
|
|
];
|
|
|
|
disabledTests = [
|
|
# Test is out-dated
|
|
"test_K8sCveHunter"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Tool to search issues in Kubernetes clusters";
|
|
homepage = "https://github.com/aquasecurity/kube-hunter";
|
|
license = with licenses; [ asl20 ];
|
|
maintainers = with maintainers; [ fab ];
|
|
mainProgram = "kube-hunter";
|
|
};
|
|
}
|