Merge pull request #281325 from onny/octodns-gandi

octodns-providers.gandi: init at 0.0.2
This commit is contained in:
Janik 2024-01-16 23:49:41 +01:00 committed by GitHub
commit 4e316f27bf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 52 additions and 0 deletions

View File

@ -0,0 +1,51 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, octodns
, pytestCheckHook
, pythonOlder
, requests
, requests-mock
, setuptools
, wheel
}:
buildPythonPackage rec {
pname = "octodns-gandi";
version = "0.0.2";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "octodns";
repo = "octodns-gandi";
rev = "refs/tags/v${version}";
hash = "sha256-aZUVdCeIbyXBgy8HNf6bZSmjdRzIvQkCEzndKGyuTkw=";
};
nativeBuildInputs = [
setuptools
wheel
];
propagatedBuildInputs = [
octodns
requests
];
pythonImportsCheck = [ "octodns_gandi" ];
nativeCheckInputs = [
pytestCheckHook
requests-mock
];
meta = with lib; {
description = "Gandi v5 API provider for octoDNS";
homepage = "https://github.com/octodns/octodns-gandi";
changelog = "https://github.com/octodns/octodns-gandi/blob/${src.rev}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ onny ];
};
}

View File

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