28 buildPythonPackage rec {
33 src = fetchFromGitHub {
36 rev = "refs/tags/v${version}";
37 hash = "sha256-yYB9Y0wniRgzNk5XatkjKayIPj7ienXsqOboKPwzIfk=";
40 sourceRoot = "${src.name}/${pname}";
46 propagatedBuildInputs = [
56 setuptools # for pkg_resources
59 buildInputs = [ dialog gnureadline ];
68 "-o cache_dir=$(mktemp -d)"
71 makeWrapperArgs = [ "--prefix PATH : ${dialog}/bin" ];
73 # certbot.withPlugins has a similar calling convention as python*.withPackages
74 # it gets invoked with a lambda, and invokes that lambda with the python package set matching certbot's:
75 # certbot.withPlugins (cp: [ cp.certbot-dns-foo ])
76 passthru.withPlugins = f:
78 pythonEnv = python.withPackages f;
81 runCommand "certbot-with-plugins"
85 ln -s ${pythonEnv}/bin/certbot
89 homepage = "https://github.com/certbot/certbot";
90 changelog = "https://github.com/certbot/certbot/blob/${src.rev}/certbot/CHANGELOG.md";
91 description = "ACME client that can obtain certs and extensibly update server configurations";
92 platforms = platforms.unix;
93 mainProgram = "certbot";
94 maintainers = with maintainers; [ domenkozar ];
95 license = with licenses; [ asl20 ];