octodns-providers.hetzner: init at 0.0.2

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

View File

@ -0,0 +1,52 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, octodns
, pytestCheckHook
, pythonOlder
, requests
, requests-mock
, setuptools
, wheel
}:
buildPythonPackage rec {
pname = "octodns-hetzner";
# the latest release tag is over a year behind.
version = "0.0.2-unstable-2023-09-29";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "octodns";
repo = "octodns-hetzner";
rev = "620840593a520dac9e365240b3ab361ded309c8e";
hash = "sha256-WdYy8tc0+PYsKuyp3uqOzbxwhLSZ+06L3JVaTSATEKM=";
};
nativeBuildInputs = [
setuptools
wheel
];
propagatedBuildInputs = [
octodns
requests
];
pythonImportsCheck = [ "octodns_hetzner" ];
nativeCheckInputs = [
pytestCheckHook
requests-mock
];
meta = with lib; {
description = "Hetzner DNS provider for octoDNS";
homepage = "https://github.com/octodns/octodns-hetzner/";
changelog = "https://github.com/octodns/octodns-hetzner/blob/${src.rev}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ janik ];
};
}

View File

@ -825,6 +825,10 @@ with pkgs;
octodns = python3Packages.callPackage ../tools/networking/octodns { };
octodns-providers = recurseIntoAttrs {
hetzner = python3Packages.callPackage ../tools/networking/octodns/providers/hetzner { };
};
octosuite = callPackage ../tools/security/octosuite { };
octosql = callPackage ../tools/misc/octosql { };