octodns-providers.hetzner: init at 0.0.2
This commit is contained in:
parent
87c91fb4b6
commit
548841426b
52
pkgs/tools/networking/octodns/providers/hetzner/default.nix
Normal file
52
pkgs/tools/networking/octodns/providers/hetzner/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user