diff --git a/pkgs/development/python-modules/parsedmarc/default.nix b/pkgs/development/python-modules/parsedmarc/default.nix index ef557cb316f6..cad17e4fb9cb 100644 --- a/pkgs/development/python-modules/parsedmarc/default.nix +++ b/pkgs/development/python-modules/parsedmarc/default.nix @@ -1,24 +1,28 @@ { lib, + buildPythonPackage, + fetchPypi, + fetchurl, + + # build-system + hatchling, + + # dependencies azure-identity, azure-monitor-ingestion, boto3, - buildPythonPackage, dateparser, dnspython, elastic-transport, - elasticsearch, elasticsearch-dsl, + elasticsearch, expiringdict, - fetchPypi, - fetchurl, geoip2, google-api-core, google-api-python-client, - google-auth, google-auth-httplib2, google-auth-oauthlib, - hatchling, + google-auth, imapclient, kafka-python-ng, lxml, @@ -28,7 +32,6 @@ opensearch-py, publicsuffixlist, pygelf, - pythonOlder, requests, tqdm, xmltodict, @@ -45,14 +48,12 @@ buildPythonPackage rec { version = "8.18.1"; pyproject = true; - disabled = pythonOlder "3.7"; - src = fetchPypi { inherit pname version; hash = "sha256-qE/WMovVlB9u0lyVl3HapHzvhG+fGTC+6DDBUKRU/2w="; }; - nativeBuildInputs = [ + build-system = [ hatchling ]; @@ -61,7 +62,7 @@ buildPythonPackage rec { "elasticsearch-dsl" ]; - propagatedBuildInputs = [ + dependencies = [ azure-identity azure-monitor-ingestion boto3 @@ -82,12 +83,12 @@ buildPythonPackage rec { lxml mailsuite msgraph-core + opensearch-py publicsuffixlist pygelf requests tqdm xmltodict - opensearch-py ]; # no tests on PyPI, no tags on GitHub @@ -101,14 +102,14 @@ buildPythonPackage rec { tests = nixosTests.parsedmarc; }; - meta = with lib; { + meta = { description = "Python module and CLI utility for parsing DMARC reports"; homepage = "https://domainaware.github.io/parsedmarc/"; changelog = "https://github.com/domainaware/parsedmarc/blob/master/CHANGELOG.md#${ lib.replaceStrings [ "." ] [ "" ] version }"; - license = licenses.asl20; - maintainers = with maintainers; [ talyz ]; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ talyz ]; mainProgram = "parsedmarc"; # https://github.com/domainaware/parsedmarc/issues/464 broken = lib.versionAtLeast msgraph-core.version "1.0.0";