diff options
author | Fabian Affolter <fabian@affolter-engineering.ch> | 2023-04-28 18:42:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-28 18:42:38 +0200 |
commit | 1316a23ae7cf8a0cfc8dc566247e829becf05cc5 (patch) | |
tree | f71dca6dfc6b0a7e9367fdda6ba9fe70c9eea643 | |
parent | 31c3135bec9192f7be2b7f837a09514d237cd644 (diff) | |
parent | e5d668a1f8f89b9c854c49a1840f93e155e4e9a4 (diff) |
Merge pull request #228672 from fabaff/authheaders-bump
python310Packages.authheaders: 0.15.1 -> 0.15.2
-rw-r--r-- | pkgs/development/python-modules/authheaders/default.nix | 40 |
1 files changed, 33 insertions, 7 deletions
diff --git a/pkgs/development/python-modules/authheaders/default.nix b/pkgs/development/python-modules/authheaders/default.nix index 96a035f4a5824..37e81f7142907 100644 --- a/pkgs/development/python-modules/authheaders/default.nix +++ b/pkgs/development/python-modules/authheaders/default.nix @@ -1,21 +1,47 @@ -{ buildPythonPackage, fetchPypi, lib -, authres, dnspython, dkimpy, publicsuffix2 +{ lib +, authres +, buildPythonPackage +, dkimpy +, dnspython +, fetchFromGitHub +, publicsuffix2 +, pythonOlder +, pytestCheckHook }: buildPythonPackage rec { pname = "authheaders"; - version = "0.15.1"; + version = "0.15.2"; + format = "setuptools"; - src = fetchPypi { - inherit pname version; - hash = "sha256-90rOvu+CbHtammrMDZpPx7rIboIT2X/jL1GtfjpmuOk="; + disabled = pythonOlder "3.7"; + + src = fetchFromGitHub { + owner = "ValiMail"; + repo = "authentication-headers"; + rev = "refs/tags/${version}"; + hash = "sha256-vtLt7JUdLF0gBWgMzP65UAR6A9BnTech5n0alFErcSQ="; }; - propagatedBuildInputs = [ authres dnspython dkimpy publicsuffix2 ]; + propagatedBuildInputs = [ + authres + dnspython + dkimpy + publicsuffix2 + ]; + + 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; [ ]; }; |