14
0
forked from pool/python-dkimpy
Files
python-dkimpy/no-optional.patch
Tomáš Chvátal 87da128162 Accepting request 791121 from home:mcalabkova:branches:devel:languages:python
- update to 1.0.3
  * dknewkey: On posix operating systems set file permissions to 600 for
    ed25519 private key files (as is already done for RSA) (LP: #1857827)
  * Set minimum dnspython version to 1.16 because previous versions can not
    support the timeout parameter (LP: #1856546)
  * Follow CNAMES when looking up key records when using DNS (pydns)
  * Add support for RFC 8460 tlsrpt DKIM signature processing (LP: #1847020)
  * Add async support with aiodns for DKIM verification (ARC not supported)
  * Add new timeout parameter to enable DNS lookup timeouts to be adjusted
  * Add new DKIM.present function to allow applications to test if a DKIM
    signature is present without doing validation (LP: #1851141)
  * Support signature verification with RSAPublicKey formatted keys
    since, although rare, they are RFC 6376 specified (LP: #1851862)
  * Drop usage of pymilter Milter.dns in dnsplug since it doesn't support
    having a timeout passed to it
  * Catch binascii related key format errors (LP: #1854477)
  * Ignore unknown service types in key records (LP: #1847020)
  * Add LICENSE to MANIFEST.in so it is included in the tarball
- Drop shipped LICENSE file
- Reapplied patch no-optional.patch

OBS-URL: https://build.opensuse.org/request/show/791121
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-dkimpy?expand=0&rev=3
2020-04-03 08:18:06 +00:00

27 lines
651 B
Diff

Index: dkimpy-1.0.3/dkim/__init__.py
===================================================================
--- dkimpy-1.0.3.orig/dkim/__init__.py
+++ dkimpy-1.0.3/dkim/__init__.py
@@ -40,18 +40,9 @@ import sys
import time
import binascii
-# only needed for arc
-try:
- from authres import AuthenticationResultsHeader
-except ImportError:
- pass
-
-# only needed for ed25519 signing/verification
-try:
- import nacl.signing
- import nacl.encoding
-except ImportError:
- pass
+from authres import AuthenticationResultsHeader
+import nacl.signing
+import nacl.encoding
from dkim.canonicalization import (
CanonicalizationPolicy,