mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 12:53:05 +00:00
octodns-providers.powerdns: init at 0.0.5
This commit is contained in:
parent
548841426b
commit
fa8bd5fd41
53
pkgs/tools/networking/octodns/providers/powerdns/default.nix
Normal file
53
pkgs/tools/networking/octodns/providers/powerdns/default.nix
Normal file
@ -0,0 +1,53 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, octodns
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, requests
|
||||
, requests-mock
|
||||
, setuptools
|
||||
, wheel
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "octodns-powerdns";
|
||||
version = "0.0.5";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "octodns";
|
||||
repo = "octodns-powerdns";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-jt0+JnpCgvsoqMcC9mANX7uq2WPTiI2JQjwQi7LGWj0=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools
|
||||
wheel
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
octodns
|
||||
requests
|
||||
];
|
||||
|
||||
env.OCTODNS_RELEASE = 1;
|
||||
|
||||
pythonImportsCheck = [ "octodns_powerdns" ];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
requests-mock
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "PowerDNS API provider for octoDNS";
|
||||
homepage = "https://github.com/octodns/octodns-powerdns/";
|
||||
changelog = "https://github.com/octodns/octodns-powerdns/blob/${src.rev}/CHANGELOG.md";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ janik ];
|
||||
};
|
||||
}
|
@ -827,6 +827,7 @@ with pkgs;
|
||||
|
||||
octodns-providers = recurseIntoAttrs {
|
||||
hetzner = python3Packages.callPackage ../tools/networking/octodns/providers/hetzner { };
|
||||
powerdns = python3Packages.callPackage ../tools/networking/octodns/providers/powerdns { };
|
||||
};
|
||||
|
||||
octosuite = callPackage ../tools/security/octosuite { };
|
||||
|
Loading…
Reference in New Issue
Block a user