1{
2 buildPythonPackage,
3 acme,
4 certbot,
5 dns-lexicon,
6 pytestCheckHook,
7 pythonOlder,
8}:
9
10buildPythonPackage rec {
11 pname = "certbot-dns-ovh";
12 format = "setuptools";
13
14 inherit (certbot) src version;
15 disabled = pythonOlder "3.6";
16
17 sourceRoot = "${src.name}/certbot-dns-ovh";
18
19 propagatedBuildInputs = [
20 acme
21 certbot
22 dns-lexicon
23 ];
24
25 nativeCheckInputs = [ pytestCheckHook ];
26
27 pytestFlagsArray = [
28 "-o cache_dir=$(mktemp -d)"
29
30 # Monitor https://github.com/certbot/certbot/issues/9606 for a solution
31 "-W 'ignore:pkg_resources is deprecated as an API:DeprecationWarning'"
32 "-W 'ignore:Package lexicon.providers is deprecated and will be removed in Lexicon 4>=.:DeprecationWarning'"
33 "-W 'ignore:Legacy configuration object has been used to load the ConfigResolver.:DeprecationWarning'"
34 ];
35
36 meta = certbot.meta // {
37 description = "OVH DNS Authenticator plugin for Certbot";
38 };
39}