summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/certbot-dns-cloudflare/default.nix
blob: d9a162774bac20c49ce8d72f4b96ae004fb7f00e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{
  buildPythonPackage,
  acme,
  certbot,
  cloudflare,
  pytestCheckHook,
  setuptools,
}:

buildPythonPackage rec {
  pname = "certbot-dns-cloudflare";
  pyproject = true;

  inherit (certbot) src version;

  sourceRoot = "${src.name}/certbot-dns-cloudflare";

  build-system = [ setuptools ];

  dependencies = [
    acme
    certbot
    cloudflare
  ];

  nativeCheckInputs = [ pytestCheckHook ];

  pytestFlags = [
    "-pno:cacheprovider"

    # Monitor https://github.com/certbot/certbot/issues/9606 for a solution
    "-Wignore::DeprecationWarning"
  ];

  meta = certbot.meta // {
    description = "Cloudflare DNS Authenticator plugin for Certbot";
    # https://github.com/certbot/certbot/pull/10182
    broken = true;
  };
}