Files
nixpkgs/pkgs/by-name/gc/gcp-scanner/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

58 lines
1.1 KiB
Nix

{
lib,
python3,
fetchFromGitHub,
}:
python3.pkgs.buildPythonApplication rec {
pname = "gcp-scanner";
version = "1.4.0";
pyproject = true;
src = fetchFromGitHub {
owner = "google";
repo = "gcp_scanner";
tag = "v${version}";
hash = "sha256-6bIrSaTqpXQjB64YWAI64DlgQBD2XD+zMvKymMtwpDk=";
};
pythonRelaxDeps = true;
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 = {
description = "Comprehensive scanner for Google Cloud";
homepage = "https://github.com/google/gcp_scanner";
changelog = "https://github.com/google/gcp_scanner/blob/${version}/CHANGELOG.md";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ fab ];
mainProgram = "gcp-scanner";
};
}