Merge pull request #268719 from fabaff/gcp-scanner

gcp-scanner: init at 1.3.0
This commit is contained in:
Fabian Affolter 2023-11-20 22:37:59 +01:00 committed by GitHub
commit 32c6832503
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,54 @@
{ lib
, python3
, fetchFromGitHub
}:
python3.pkgs.buildPythonApplication rec {
pname = "gcp-scanner";
version = "1.3.0";
pyproject = true;
src = fetchFromGitHub {
owner = "google";
repo = "gcp_scanner";
rev = "refs/tags/v${version}";
hash = "sha256-mMvAoqwptCA73JiUl8HIhFBO198NnUmvCbf8Rk9dWxA=";
};
nativeBuildInputs = with python3.pkgs; [
setuptools
setuptools-git-versioning
];
propagatedBuildInputs = with python3.pkgs; [
google-api-python-client
google-cloud-container
google-cloud-iam
httplib2
pyu2f
requests
];
nativeCheckInputs = with python3.pkgs; [
pytestCheckHook
];
pythonImportsCheck = [
"gcp_scanner"
];
disabledTests = [
# Tests require credentials
"TestCrawler"
"test_acceptance"
];
meta = with lib; {
description = "A comprehensive scanner for Google Cloud";
homepage = "https://github.com/google/gcp_scanner";
changelog = "https://github.com/google/gcp_scanner/blob/${version}/CHANGELOG.md";
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
mainProgram = "gcp-scanner";
};
}