depot/third_party/nixpkgs/pkgs/development/python-modules/certbot-dns-cloudflare/default.nix

38 lines
732 B
Nix
Raw Normal View History

{
buildPythonPackage,
acme,
certbot,
cloudflare,
pytestCheckHook,
pythonOlder,
}:
buildPythonPackage rec {
pname = "certbot-dns-cloudflare";
format = "setuptools";
inherit (certbot) src version;
disabled = pythonOlder "3.6";
sourceRoot = "${src.name}/certbot-dns-cloudflare";
propagatedBuildInputs = [
acme
certbot
cloudflare
];
nativeCheckInputs = [ pytestCheckHook ];
pytestFlagsArray = [
"-o cache_dir=$(mktemp -d)"
# Monitor https://github.com/certbot/certbot/issues/9606 for a solution
"-W 'ignore:pkg_resources is deprecated as an API:DeprecationWarning'"
];
meta = certbot.meta // {
description = "Cloudflare DNS Authenticator plugin for Certbot";
};
}