mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-19 22:30:23 +00:00
Instead of putting pytest's cache in a temporary directory, which will never be re-used anyway - let's just disable it outright. This avoids depending on bash eval in pytestFlagsArray, which we'd like to move away from. psycopg's testsuite somehow depends explicitly on this cache, thus we keep it enabled there.
38 lines
726 B
Nix
38 lines
726 B
Nix
{
|
|
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 = [
|
|
"-p no:cacheprovider"
|
|
|
|
# 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";
|
|
};
|
|
}
|