25 buildPythonPackage rec {
30 src = fetchFromGitHub {
33 rev = "refs/tags/v${version}";
34 hash = "sha256-Qee7lUjgliG5fmUWWPm3MzpGJHUF/DXZ08UA6kkWjjk=";
39 name = "CSR_support_in_pyOpenSSL_is_deprecated.patch";
40 url = "https://github.com/certbot/certbot/commit/f005045d87b25f1922774685646e57765aa202ad.patch";
41 includes = [ "pytest.ini" ];
42 hash = "sha256-YcQbZb7DLU+AXxNyqJRYZIC18DuT6X8kGbfdYtUrHiA=";
46 postPatch = "cd ${pname}"; # using sourceRoot would interfere with patches
48 build-system = [ setuptools ];
60 setuptools # for pkg_resources
75 "-o cache_dir=$(mktemp -d)"
77 "ignore::DeprecationWarning"
80 makeWrapperArgs = [ "--prefix PATH : ${dialog}/bin" ];
82 # certbot.withPlugins has a similar calling convention as python*.withPackages
83 # it gets invoked with a lambda, and invokes that lambda with the python package set matching certbot's:
84 # certbot.withPlugins (cp: [ cp.certbot-dns-foo ])
85 passthru.withPlugins =
88 pythonEnv = python.withPackages f;
90 runCommand "certbot-with-plugins" { } ''
93 ln -s ${pythonEnv}/bin/certbot
97 homepage = "https://github.com/certbot/certbot";
98 changelog = "https://github.com/certbot/certbot/blob/${src.rev}/certbot/CHANGELOG.md";
99 description = "ACME client that can obtain certs and extensibly update server configurations";
100 platforms = platforms.unix;
101 mainProgram = "certbot";
102 maintainers = with maintainers; [ domenkozar ];
103 license = with licenses; [ asl20 ];