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 ]; };