From cf82d52a23cd6dd70e4e0fb6603168443f5d691f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Fri, 9 Feb 2024 15:41:46 -0800 Subject: [PATCH] python311Packages.certbot: 2.7.4 -> 2.9.0 Diff: https://github.com/certbot/certbot/compare/refs/tags/v2.7.4...v2.9.0 Changelog: https://github.com/certbot/certbot/blob/v2.9.0/certbot/CHANGELOG.md --- .../python-modules/certbot/default.nix | 28 ++++++++----------- 1 file changed, 12 insertions(+), 16 deletions(-) diff --git a/pkgs/development/python-modules/certbot/default.nix b/pkgs/development/python-modules/certbot/default.nix index 0689319840e6..8cda81ec6d30 100644 --- a/pkgs/development/python-modules/certbot/default.nix +++ b/pkgs/development/python-modules/certbot/default.nix @@ -27,18 +27,22 @@ buildPythonPackage rec { pname = "certbot"; - version = "2.7.4"; - format = "setuptools"; + version = "2.9.0"; + pyproject = true; src = fetchFromGitHub { - owner = pname; - repo = pname; + owner = "certbot"; + repo = "certbot"; rev = "refs/tags/v${version}"; - hash = "sha256-BZ7JqAciwbmkpbzR/qZHAraLJWWXNRN3Er4XvfU5kYs="; + hash = "sha256-yYB9Y0wniRgzNk5XatkjKayIPj7ienXsqOboKPwzIfk="; }; sourceRoot = "${src.name}/${pname}"; + nativeBuildInputs = [ + setuptools + ]; + propagatedBuildInputs = [ configargparse acme @@ -48,12 +52,7 @@ buildPythonPackage rec { josepy parsedatetime pyrfc3339 - pyopenssl pytz - requests - six - zope-component - zope-interface setuptools # for pkg_resources ]; @@ -67,13 +66,8 @@ buildPythonPackage rec { pytestFlagsArray = [ "-o cache_dir=$(mktemp -d)" - # See https://github.com/certbot/certbot/issues/8746 - "-W ignore::ResourceWarning" - "-W ignore::DeprecationWarning" ]; - doCheck = true; - makeWrapperArgs = [ "--prefix PATH : ${dialog}/bin" ]; # certbot.withPlugins has a similar calling convention as python*.withPackages @@ -92,9 +86,11 @@ buildPythonPackage rec { ''; meta = with lib; { - homepage = src.meta.homepage; + homepage = "https://github.com/certbot/certbot"; + changelog = "https://github.com/certbot/certbot/blob/${src.rev}/certbot/CHANGELOG.md"; description = "ACME client that can obtain certs and extensibly update server configurations"; platforms = platforms.unix; + mainProgram = "certbot"; maintainers = with maintainers; [ domenkozar ]; license = with licenses; [ asl20 ]; };