Package Details: python-spf-engine 3.1.0-4

Git Clone URL: https://aur.archlinux.org/python-spf-engine.git (read-only, click to copy)
Package Base: python-spf-engine
Description: SPF (Sender Policy Framework) back-end for Postfix and Sendmail
Upstream URL: https://launchpad.net/spf-engine
Licenses: Apache-2.0, GPL-2.0-only
Conflicts: python-postfix-policyd-spf, spf-engine
Provides: spf-engine
Submitter: morgenstern
Maintainer: morgenstern
Last Packager: morgenstern
Votes: 2
Popularity: 0.000000
First Submitted: 2021-03-16 21:49 (UTC)
Last Updated: 2026-05-24 16:30 (UTC)

Pinned Comments

morgenstern commented on 2020-05-23 14:43 (UTC) (edited on 2020-05-23 14:44 (UTC) by morgenstern)

GPG signing has been enabled for this package. If you get an "unknown key" error, import the key and run makepkg again:

gpg --recv-keys E7729BFFBE85400FEEEE23B178D7DEFB9AD59AF1

See the following links for more information:
http://allanmcrae.com/2015/01/two-pgp-keyrings-for-package-management-in-arch-linux/
https://wiki.archlinux.org/index.php/Makepkg#Signature_checking
https://wiki.archlinux.org/index.php/GnuPG#Import_a_public_key

Latest Comments

morgenstern commented on 2026-05-24 16:27 (UTC)

Thanks @arcanenibble - have pushed an updated PKGBUILD with your recommended changes.

I do not have an Ubuntu One account, and upstream responsiveness on bugs has been pretty lacking, but I will see about making a report at some point in the near future.

arcanenibble commented on 2026-05-20 21:26 (UTC)

The upstream code declares an incompatibility with python-flit version 4:

==> Starting build()...
* Getting build dependencies for wheel...

ERROR Missing dependencies:
    flit_core<4,>=3.8
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: python-spf-engine-exit status 4
 -> Failed to install the following packages. Manual intervention is required:
python-spf-engine - exit status 4

However, patching it out seems to work fine:

diff --git a/PKGBUILD b/PKGBUILD
index 45b15a6..6781c65 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -31,6 +31,7 @@ validpgpkeys=('E7729BFFBE85400FEEEE23B178D7DEFB9AD59AF1') # Donald Scott Kitterm

 build() {
   cd "${pkgname#*-}-${pkgver}"
+  sed -e 's/flit_core >=3.8,<4/flit_core >=3.8/' -i pyproject.toml
   python -m build --wheel --no-isolation
 }

Ideally this should be reported to upstream.

morgenstern commented on 2024-05-05 19:05 (UTC)

@ki9 please rebuild the python-pyspf dependency against python-3.12.

ki9 commented on 2024-05-05 14:14 (UTC) (edited on 2024-05-05 14:15 (UTC) by ki9)

This package might be broken. Postfix was throwing some errors, so I ran policyd-spf and got ImportError: Module not found: spf, or something like that.

morgenstern commented on 2022-04-15 10:43 (UTC) (edited on 2022-04-15 10:44 (UTC) by morgenstern)

Thanks @Thaodan. I do not understand why the package needs to depend on an explicit Python version, though. Could you please give me a bit more context for why you need this particular customisation?

Thaodan commented on 2022-04-15 09:42 (UTC) (edited on 2022-04-15 10:23 (UTC) by Thaodan)

@morgenstern: makedepends=(python)

Then in build(): _version_major=$(python -c 'import sys;print(sys.version_info.major)') _version_micro=$(python -c 'import sys;print(sys.version_info.micro)')

_version_bad=${version_major}.$((version_micro+1)) _version_good=${version_major}.${version_micro}

Than in package(): depends+=("python>=${_version_good}" "python<${_version_bad}")

morgenstern commented on 2021-01-30 03:05 (UTC)

@Thaodan I'm not sure I follow - if you want to post an example of what you think the PKGBUILD should look like, I'd be happy to take it under advisement.

Thaodan commented on 2021-01-29 11:09 (UTC)

Can you make it so it depends on the python version used during build?

morgenstern commented on 2020-05-23 14:43 (UTC) (edited on 2020-05-23 14:44 (UTC) by morgenstern)

GPG signing has been enabled for this package. If you get an "unknown key" error, import the key and run makepkg again:

gpg --recv-keys E7729BFFBE85400FEEEE23B178D7DEFB9AD59AF1

See the following links for more information:
http://allanmcrae.com/2015/01/two-pgp-keyrings-for-package-management-in-arch-linux/
https://wiki.archlinux.org/index.php/Makepkg#Signature_checking
https://wiki.archlinux.org/index.php/GnuPG#Import_a_public_key