Merge pull request #284544 from fabaff/prowler

prowler: init at 3.12.1
This commit is contained in:
Fabian Affolter 2024-01-29 09:31:30 +01:00 committed by GitHub
commit c04ca49312
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 136 additions and 5 deletions

View file

@ -0,0 +1,69 @@
{ lib
, python3
, fetchFromGitHub
}:
python3.pkgs.buildPythonApplication rec {
pname = "prowler";
version = "3.12.1";
pyproject = true;
src = fetchFromGitHub {
owner = "prowler-cloud";
repo = "prowler";
rev = "refs/tags/${version}";
hash = "sha256-QauDqeCa499AcZurGjn2Yv4GH04F/pahAH2ms7gAca4=";
};
pythonRelaxDeps = [
"azure-mgmt-security"
"boto3"
"botocore"
"google-api-python-client"
"slack-sdk"
];
nativeBuildInputs = with python3.pkgs; [
poetry-core
pythonRelaxDepsHook
];
propagatedBuildInputs = with python3.pkgs; [
alive-progress
awsipranges
azure-identity
azure-mgmt-authorization
azure-mgmt-security
azure-mgmt-sql
azure-mgmt-storage
azure-mgmt-subscription
azure-storage-blob
boto3
botocore
colorama
detect-secrets
google-api-python-client
google-auth-httplib2
jsonschema
msgraph-core
msrestazure
pydantic_1
schema
shodan
slack-sdk
tabulate
];
pythonImportsCheck = [
"prowler"
];
meta = with lib; {
description = "Security tool for AWS, Azure and GCP to perform Cloud Security best practices assessments";
homepage = "https://github.com/prowler-cloud/prowler";
changelog = "https://github.com/prowler-cloud/prowler/releases/tag/${version}";
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
mainProgram = "prowler";
};
}

View file

@ -5,20 +5,28 @@
, fetchFromGitHub
, grapheme
, pytestCheckHook
, pythonOlder
, setuptools
}:
buildPythonPackage rec {
pname = "alive-progress";
version = "3.1.4";
format = "setuptools";
version = "3.1.5";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "rsalmei";
repo = pname;
rev = "v${version}";
hash = "sha256-27PgxQ9nw8p5hfaSf/jPYG7419o3i8B8R09o93szSOk=";
repo = "alive-progress";
rev = "refs/tags/v${version}";
hash = "sha256-yJhl0QrMHET9ISDc/D5AEQ7dTJkmcV2SWqy/xmG18uY=";
};
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
about-time
grapheme
@ -36,6 +44,7 @@ buildPythonPackage rec {
meta = with lib; {
description = "A new kind of Progress Bar, with real-time throughput, ETA, and very cool animations";
homepage = "https://github.com/rsalmei/alive-progress";
changelog = "https://github.com/rsalmei/alive-progress/blob/v${version}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ thiagokokada ];
};

View file

@ -0,0 +1,51 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, pyopenssl
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "awsipranges";
version = "0.3.3";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "aws-samples";
repo = "awsipranges";
rev = "refs/tags/${version}";
hash = "sha256-ve1+0zkDDUGswtQoXhfESMcBzoNgUutxEhz43HXL4H8=";
};
nativeBuildInputs = [
poetry-core
];
nativeCheckInputs = [
pyopenssl
pytestCheckHook
];
pythonImportsCheck = [
"awsipranges"
];
disabledTestPaths = [
# Tests require network access
"tests/data/test_syntax_and_semantics.py"
"tests/integration/test_package_apis.py"
"tests/unit/test_data_loading.py"
];
meta = with lib; {
description = "Module to work with the AWS IP address ranges";
homepage = "https://github.com/aws-samples/awsipranges";
changelog = "https://github.com/aws-samples/awsipranges/releases/tag/${version}";
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
};
}

View file

@ -1016,6 +1016,8 @@ self: super: with self; {
awsiotpythonsdk = callPackage ../development/python-modules/awsiotpythonsdk { };
awsipranges = callPackage ../development/python-modules/awsipranges { };
awslambdaric = callPackage ../development/python-modules/awslambdaric { };
awswrangler = callPackage ../development/python-modules/awswrangler { };