mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 14:26:33 +01:00
56a2aff58c
Diff: https://github.com/google/gcp_scanner/compare/refs/tags/v1.4.0...v1.4.0 Changelog: https://github.com/google/gcp_scanner/blob/1.4.0/CHANGELOG.md
57 lines
1.2 KiB
Nix
57 lines
1.2 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";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-6bIrSaTqpXQjB64YWAI64DlgQBD2XD+zMvKymMtwpDk=";
|
|
};
|
|
|
|
pythonRelaxDeps = true;
|
|
|
|
nativeBuildInputs = with python3.pkgs; [
|
|
setuptools
|
|
setuptools-git-versioning
|
|
pythonRelaxDepsHook
|
|
];
|
|
|
|
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";
|
|
};
|
|
}
|