From bc577a24858ca0777d6ba28ed1a63c6ef760c187 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 28 Apr 2023 10:00:54 +0200 Subject: [PATCH 1/5] python310Packages.authheaders: 0.15.1 -> 0.15.2 --- pkgs/development/python-modules/authheaders/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/authheaders/default.nix b/pkgs/development/python-modules/authheaders/default.nix index 96a035f4a582..04b8f2fcb652 100644 --- a/pkgs/development/python-modules/authheaders/default.nix +++ b/pkgs/development/python-modules/authheaders/default.nix @@ -4,11 +4,11 @@ buildPythonPackage rec { pname = "authheaders"; - version = "0.15.1"; + version = "0.15.2"; src = fetchPypi { inherit pname version; - hash = "sha256-90rOvu+CbHtammrMDZpPx7rIboIT2X/jL1GtfjpmuOk="; + hash = "sha256-kAzuiKYeZH74Tr38vO4BVDIHRNjsHX1ukmhC9EcoO98="; }; propagatedBuildInputs = [ authres dnspython dkimpy publicsuffix2 ]; From 745fd3cac161c1c342329d4cf87cd6bbdaefd764 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 28 Apr 2023 10:03:39 +0200 Subject: [PATCH 2/5] python310Packages.authheaders: add changelog to meta --- pkgs/development/python-modules/authheaders/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/development/python-modules/authheaders/default.nix b/pkgs/development/python-modules/authheaders/default.nix index 04b8f2fcb652..8d10a9891292 100644 --- a/pkgs/development/python-modules/authheaders/default.nix +++ b/pkgs/development/python-modules/authheaders/default.nix @@ -16,6 +16,7 @@ buildPythonPackage rec { 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; [ ]; }; From b86d49493065eb0ee9527d0139f929fe28034311 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 28 Apr 2023 10:08:07 +0200 Subject: [PATCH 3/5] python310Packages.authheaders: add format - disable on unsupported Python releases --- .../python-modules/authheaders/default.nix | 20 ++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/authheaders/default.nix b/pkgs/development/python-modules/authheaders/default.nix index 8d10a9891292..b70078d41678 100644 --- a/pkgs/development/python-modules/authheaders/default.nix +++ b/pkgs/development/python-modules/authheaders/default.nix @@ -1,17 +1,31 @@ -{ buildPythonPackage, fetchPypi, lib -, authres, dnspython, dkimpy, publicsuffix2 +{ lib +, buildPythonPackage +, fetchPypi +, authres +, dnspython +, dkimpy +, publicsuffix2 +, pythonOlder }: buildPythonPackage rec { pname = "authheaders"; version = "0.15.2"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; hash = "sha256-kAzuiKYeZH74Tr38vO4BVDIHRNjsHX1ukmhC9EcoO98="; }; - propagatedBuildInputs = [ authres dnspython dkimpy publicsuffix2 ]; + propagatedBuildInputs = [ + authres + dnspython + dkimpy + publicsuffix2 + ]; meta = with lib; { description = "Python library for the generation of email authentication headers"; From 2884a9a8a899ff8c1d88ce83596fa32020249ccb Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 28 Apr 2023 10:09:26 +0200 Subject: [PATCH 4/5] python310Packages.authheaders: add pythonImportsCheck --- pkgs/development/python-modules/authheaders/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/development/python-modules/authheaders/default.nix b/pkgs/development/python-modules/authheaders/default.nix index b70078d41678..43d043cf26ce 100644 --- a/pkgs/development/python-modules/authheaders/default.nix +++ b/pkgs/development/python-modules/authheaders/default.nix @@ -27,6 +27,10 @@ buildPythonPackage rec { publicsuffix2 ]; + pythonImportsCheck = [ + "authheaders" + ]; + meta = with lib; { description = "Python library for the generation of email authentication headers"; homepage = "https://github.com/ValiMail/authentication-headers"; From e5d668a1f8f89b9c854c49a1840f93e155e4e9a4 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 28 Apr 2023 10:15:17 +0200 Subject: [PATCH 5/5] python310Packages.authheaders: enable tests --- .../python-modules/authheaders/default.nix | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/authheaders/default.nix b/pkgs/development/python-modules/authheaders/default.nix index 43d043cf26ce..37e81f714290 100644 --- a/pkgs/development/python-modules/authheaders/default.nix +++ b/pkgs/development/python-modules/authheaders/default.nix @@ -1,11 +1,12 @@ { lib -, buildPythonPackage -, fetchPypi , authres -, dnspython +, buildPythonPackage , dkimpy +, dnspython +, fetchFromGitHub , publicsuffix2 , pythonOlder +, pytestCheckHook }: buildPythonPackage rec { @@ -15,9 +16,11 @@ buildPythonPackage rec { disabled = pythonOlder "3.7"; - src = fetchPypi { - inherit pname version; - hash = "sha256-kAzuiKYeZH74Tr38vO4BVDIHRNjsHX1ukmhC9EcoO98="; + src = fetchFromGitHub { + owner = "ValiMail"; + repo = "authentication-headers"; + rev = "refs/tags/${version}"; + hash = "sha256-vtLt7JUdLF0gBWgMzP65UAR6A9BnTech5n0alFErcSQ="; }; propagatedBuildInputs = [ @@ -27,6 +30,10 @@ buildPythonPackage rec { publicsuffix2 ]; + nativeCheckInputs = [ + pytestCheckHook + ]; + pythonImportsCheck = [ "authheaders" ];