From b86d49493065eb0ee9527d0139f929fe28034311 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 28 Apr 2023 10:08:07 +0200 Subject: [PATCH] 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";