mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 15:33:13 +00:00
Merge pull request #281325 from onny/octodns-gandi
octodns-providers.gandi: init at 0.0.2
This commit is contained in:
commit
4e316f27bf
51
pkgs/tools/networking/octodns/providers/gandi/default.nix
Normal file
51
pkgs/tools/networking/octodns/providers/gandi/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
@ -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 { };
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user