octodns-providers.bind: init at 0.0.5
This commit is contained in:
parent
fa8bd5fd41
commit
b063d25df6
2 changed files with 52 additions and 0 deletions
51
pkgs/tools/networking/octodns/providers/bind/default.nix
Normal file
51
pkgs/tools/networking/octodns/providers/bind/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
|
@ -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 { };
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue