octodns-providers.powerdns: init at 0.0.5

This commit is contained in:
Janik H. 2023-10-31 12:04:06 +01:00
parent 548841426b
commit fa8bd5fd41
No known key found for this signature in database
2 changed files with 54 additions and 0 deletions

View File

@ -0,0 +1,53 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, octodns
, pytestCheckHook
, pythonOlder
, requests
, requests-mock
, setuptools
, wheel
}:
buildPythonPackage rec {
pname = "octodns-powerdns";
version = "0.0.5";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "octodns";
repo = "octodns-powerdns";
rev = "v${version}";
hash = "sha256-jt0+JnpCgvsoqMcC9mANX7uq2WPTiI2JQjwQi7LGWj0=";
};
nativeBuildInputs = [
setuptools
wheel
];
propagatedBuildInputs = [
octodns
requests
];
env.OCTODNS_RELEASE = 1;
pythonImportsCheck = [ "octodns_powerdns" ];
nativeCheckInputs = [
pytestCheckHook
requests-mock
];
meta = with lib; {
description = "PowerDNS API provider for octoDNS";
homepage = "https://github.com/octodns/octodns-powerdns/";
changelog = "https://github.com/octodns/octodns-powerdns/blob/${src.rev}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ janik ];
};
}

View File

@ -827,6 +827,7 @@ with pkgs;
octodns-providers = recurseIntoAttrs {
hetzner = python3Packages.callPackage ../tools/networking/octodns/providers/hetzner { };
powerdns = python3Packages.callPackage ../tools/networking/octodns/providers/powerdns { };
};
octosuite = callPackage ../tools/security/octosuite { };