542639f95a
> File "/nix/store/4yshsw9xkwfw8ybn7xsr9kg2a5dynawd-python3-3.10.12-env/lib/python3.10/site-packages/authheaders/dmarc_lookup.py", line 22, in <module>
> from pkg_resources import resource_filename # Part of setuptools
This was previously propagated from gunicorn, but gunicorn no longer
depends on setuptools. Fixes the Mailman NixOS test.
Fixes: 2b8a7515d8 ("python3.pkgs.gunicorn: replace setuptools with packaging dependency")
51 lines
1014 B
Nix
51 lines
1014 B
Nix
{ lib
|
|
, authres
|
|
, buildPythonPackage
|
|
, dkimpy
|
|
, dnspython
|
|
, fetchFromGitHub
|
|
, publicsuffix2
|
|
, pythonOlder
|
|
, pytestCheckHook
|
|
, setuptools
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "authheaders";
|
|
version = "0.15.2";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ValiMail";
|
|
repo = "authentication-headers";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-vtLt7JUdLF0gBWgMzP65UAR6A9BnTech5n0alFErcSQ=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
authres
|
|
dnspython
|
|
dkimpy
|
|
publicsuffix2
|
|
setuptools
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"authheaders"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Python library for the generation of email authentication headers";
|
|
homepage = "https://github.com/ValiMail/authentication-headers";
|
|
changelog = "https://github.com/ValiMail/authentication-headers/blob${version}/CHANGES";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ ];
|
|
};
|
|
}
|