octodns-providers.bind: init at 0.0.5

This commit is contained in:
Janik H. 2023-12-05 21:30:29 +01:00
parent fa8bd5fd41
commit b063d25df6
No known key found for this signature in database
2 changed files with 52 additions and 0 deletions

View file

@ -0,0 +1,51 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, octodns
, pytestCheckHook
, pythonOlder
, dnspython
, setuptools
, wheel
}:
buildPythonPackage rec {
pname = "octodns-bind";
version = "0.0.5";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "octodns";
repo = "octodns-bind";
rev = "v${version}";
hash = "sha256-0ia/xYarrOiLZa8KU0s5wtCGtXIyxSl6OcwNkSJb/rA=";
};
nativeBuildInputs = [
setuptools
wheel
];
propagatedBuildInputs = [
octodns
dnspython
];
env.OCTODNS_RELEASE = 1;
pythonImportsCheck = [ "octodns_bind" ];
nativeCheckInputs = [
pytestCheckHook
];
meta = with lib; {
description = " RFC compliant (Bind9) provider for octoDNS";
homepage = "https://github.com/octodns/octodns-bind";
changelog = "https://github.com/octodns/octodns-bind/blob/${src.rev}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ janik ];
};
}

View file

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