28 buildPythonPackage rec {
32 src = fetchFromGitHub {
35 rev = "refs/tags/v${version}";
36 hash = "sha256-CbYamk1+NvcyS6w7pOjpD5lqWHCk+VJqF9R3xYxzpQk=";
39 sourceRoot = "${src.name}/${pname}";
41 propagatedBuildInputs = [
56 setuptools # for pkg_resources
59 buildInputs = [ dialog gnureadline ];
68 "-o cache_dir=$(mktemp -d)"
69 # See https://github.com/certbot/certbot/issues/8746
70 "-W ignore::ResourceWarning"
71 "-W ignore::DeprecationWarning"
76 makeWrapperArgs = [ "--prefix PATH : ${dialog}/bin" ];
78 # certbot.withPlugins has a similar calling convention as python*.withPackages
79 # it gets invoked with a lambda, and invokes that lambda with the python package set matching certbot's:
80 # certbot.withPlugins (cp: [ cp.certbot-dns-foo ])
81 passthru.withPlugins = f:
83 pythonEnv = python.withPackages f;
86 runCommand "certbot-with-plugins"
90 ln -s ${pythonEnv}/bin/certbot
94 homepage = src.meta.homepage;
95 description = "ACME client that can obtain certs and extensibly update server configurations";
96 platforms = platforms.unix;
97 maintainers = with maintainers; [ domenkozar ];
98 license = with licenses; [ asl20 ];