diff --git a/pkgs/by-name/pr/prowler/package.nix b/pkgs/by-name/pr/prowler/package.nix index 702d78b78a79..ab3e0da7bc9b 100644 --- a/pkgs/by-name/pr/prowler/package.nix +++ b/pkgs/by-name/pr/prowler/package.nix @@ -1,39 +1,49 @@ -{ lib -, python3 -, fetchFromGitHub +{ + lib, + python3, + fetchFromGitHub, }: python3.pkgs.buildPythonApplication rec { pname = "prowler"; - version = "3.12.1"; + version = "3.13.0"; pyproject = true; src = fetchFromGitHub { owner = "prowler-cloud"; repo = "prowler"; rev = "refs/tags/${version}"; - hash = "sha256-QauDqeCa499AcZurGjn2Yv4GH04F/pahAH2ms7gAca4="; + hash = "sha256-19B6b+xR+f7dIu/6eINsxs7UxuV96QdsNncodC8/N3Q="; }; pythonRelaxDeps = [ "azure-mgmt-security" + "azure-storage-blob" "boto3" "botocore" "google-api-python-client" + "jsonschema" + "pydantic" "slack-sdk" "pydantic" ]; nativeBuildInputs = with python3.pkgs; [ - poetry-core pythonRelaxDepsHook ]; - propagatedBuildInputs = with python3.pkgs; [ + build-system = with python3.pkgs; [ + poetry-core + ]; + + dependencies = with python3.pkgs; [ alive-progress awsipranges azure-identity + azure-mgmt-applicationinsights azure-mgmt-authorization + azure-mgmt-cosmosdb + azure-mgmt-rdbms azure-mgmt-security azure-mgmt-sql azure-mgmt-storage @@ -46,7 +56,7 @@ python3.pkgs.buildPythonApplication rec { google-api-python-client google-auth-httplib2 jsonschema - msgraph-core + msgraph-sdk msrestazure pydantic_1 schema @@ -55,9 +65,7 @@ python3.pkgs.buildPythonApplication rec { tabulate ]; - pythonImportsCheck = [ - "prowler" - ]; + pythonImportsCheck = [ "prowler" ]; meta = with lib; { description = "Security tool for AWS, Azure and GCP to perform Cloud Security best practices assessments"; diff --git a/pkgs/development/python-modules/msgraph-sdk/default.nix b/pkgs/development/python-modules/msgraph-sdk/default.nix new file mode 100644 index 000000000000..51027a2897bf --- /dev/null +++ b/pkgs/development/python-modules/msgraph-sdk/default.nix @@ -0,0 +1,54 @@ +{ + lib, + azure-identity, + buildPythonPackage, + fetchFromGitHub, + microsoft-kiota-abstractions, + microsoft-kiota-authentication-azure, + microsoft-kiota-http, + microsoft-kiota-serialization-json, + microsoft-kiota-serialization-text, + msgraph-core, + pythonOlder, + setuptools, +}: + +buildPythonPackage rec { + pname = "msgraph-sdk"; + version = "1.1.0"; + pyproject = true; + + disabled = pythonOlder "3.8"; + + src = fetchFromGitHub { + owner = "microsoftgraph"; + repo = "msgraph-sdk-python"; + rev = "refs/tags/v${version}"; + hash = "sha256-fAchReqVhkVhT48UrTnBUQerHmgB7qxpey0xrgxIVDs="; + }; + + build-system = [ setuptools ]; + + dependencies = [ + azure-identity + microsoft-kiota-abstractions + microsoft-kiota-authentication-azure + microsoft-kiota-http + microsoft-kiota-serialization-json + microsoft-kiota-serialization-text + msgraph-core + ]; + + # Module doesn't have tests + doCheck = false; + + pythonImportsCheck = [ "msgraph" ]; + + meta = with lib; { + description = "Microsoft Graph SDK for Python"; + homepage = "https://github.com/microsoftgraph/msgraph-sdk-python"; + changelog = "https://github.com/microsoftgraph/msgraph-sdk-python/blob/${version}/CHANGELOG.md"; + license = licenses.mit; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index b525608c3901..7b5ca7ff75d5 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -9558,6 +9558,8 @@ self: super: with self; { msgraph-core = callPackage ../development/python-modules/msgraph-core { }; + msgraph-sdk = callPackage ../development/python-modules/msgraph-sdk { }; + multipart = callPackage ../development/python-modules/multipart { }; netmap = callPackage ../development/python-modules/netmap { };