Package Details: parsedmarc 8.6.4-1

Git Clone URL: https://aur.archlinux.org/parsedmarc.git (read-only, click to copy)
Package Base: parsedmarc
Description: Python package and CLI for parsing aggregate and forensic DMARC reports
Upstream URL: https://domainaware.github.io/parsedmarc
Licenses: Apache
Submitter: flacks
Maintainer: None
Last Packager: micwoj92
Votes: 3
Popularity: 0.000000
First Submitted: 2018-08-23 21:39 (UTC)
Last Updated: 2023-11-17 22:09 (UTC)

Pinned Comments

micwoj92 commented on 2023-11-17 22:12 (UTC)

This currently does not run due to old python-elasticsearch version in repos. You'd have to: 1. install this elastic-transport python module (I see no sense in uploading it since it is required when python-elasticsearch will be eventually updated in repos). 2. build 8.11.0 of python-elasticsearch.

I've also changed download to pypi, because upstream has no tags and I find this commit based download bad, that also means no docs and tests.

Latest Comments

micwoj92 commented on 2023-11-17 22:12 (UTC)

This currently does not run due to old python-elasticsearch version in repos. You'd have to: 1. install this elastic-transport python module (I see no sense in uploading it since it is required when python-elasticsearch will be eventually updated in repos). 2. build 8.11.0 of python-elasticsearch.

I've also changed download to pypi, because upstream has no tags and I find this commit based download bad, that also means no docs and tests.

piater commented on 2022-07-03 18:06 (UTC) (edited on 2022-07-03 18:08 (UTC) by piater)

To fix the bad escape \d at position 7 bug leading to empty reports:

In PKGBUILD:

  • In depends, replace dateparser>=... by dateutil.
  • Add dateutil.patch to source, and 30e7d94081110b3e77882f673c6914429b99332adabf806b5a92432ee5a03df019ca3b4c4990573553231b3aefc1d4c778437cb3f9fcbb387e8ae96c0c4ca31d to sha512sums.

To PKGBUILD add:

prepare() {
    cd "$srcdir/$pkgname-$_commit"
    patch --strip=1 --input=$srcdir/dateutil.patch
}

Add a file dateutil.patch containing:

diff --unified --recursive --text parsedmarc.orig/parsedmarc/utils.py parsedmarc.new/parsedmarc/utils.py
--- parsedmarc.orig/parsedmarc/utils.py 2020-11-25 15:36:39.000000000 +0100
+++ parsedmarc.new/parsedmarc/utils.py  2022-07-03 18:18:10.559619785 +0200
@@ -3,6 +3,7 @@
 import logging
 import os
 from datetime import datetime
+from datetime import timezone
 from datetime import timedelta
 from collections import OrderedDict
 import tempfile
@@ -17,7 +18,7 @@
 import mailbox
 import re

-import dateparser
+from dateutil.parser import parse as parse_date
 import dns.reversename
 import dns.resolver
 import dns.exception
@@ -239,12 +240,9 @@

     human_timestamp = human_timestamp.replace("-0000", "")
     human_timestamp = parenthesis_regex.sub("", human_timestamp)
-    settings = {}

-    if to_utc:
-        settings = {"TO_TIMEZONE": "UTC"}
-
-    return dateparser.parse(human_timestamp, settings=settings)
+    dt = parse_date(human_timestamp)
+    return dt.astimezone(timezone.utc) if to_utc else dt


 def human_timestamp_to_timestamp(human_timestamp):

android commented on 2021-03-21 02:06 (UTC)

python-codecov is still missing. I just commented it out in the PKGBUILD (in python-mailsuite too) Any idea what the consequences of no python-codecov are?

ashpie commented on 2021-02-02 14:43 (UTC)

python-codecov seems to have been deleted from the AUR. Any idea why? Is there a way to install it from another source?

bjo commented on 2021-01-03 20:15 (UTC)

Feel free to adopt the package :)

thomas_niphba commented on 2021-01-03 16:54 (UTC)

I have created an updated PKGBUILD for version 6.12.0. I would like to share with you.

flacks commented on 2019-09-01 23:39 (UTC) (edited on 2019-09-01 23:40 (UTC) by flacks)

lilmike, I have not tested parsedmarc with Python requirements explicitly marked as lesser-than versions, but we can induce that there are API incompatibilities with the newer libraries. Its not difficult to build the older/newer versions of Python packages not in the AUR - see the ABS, and, in the case of older packages, the respective packages' Git history. In my case, as of this writing, I haven't run into system-wide issues with the older/newer Python libraries.

lilmike commented on 2019-09-01 11:17 (UTC)

This package seems to depend on python-elasticsearch<7.0.0, and it is currently at 7.0.4. Would it be possible to update the PKGBUILD to support that version, or does the source on github itself not support it?

danieltetraquark commented on 2019-03-11 17:53 (UTC)

Could you maybe use the latest commit? There are several -git PKGBUILDs around here