diff --git a/pkgs/tools/networking/octodns/default.nix b/pkgs/tools/networking/octodns/default.nix index f298e7f4f75e..42c8acf5618e 100644 --- a/pkgs/tools/networking/octodns/default.nix +++ b/pkgs/tools/networking/octodns/default.nix @@ -1,22 +1,23 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, setuptools -, pytestCheckHook -, dnspython -, fqdn -, idna -, natsort -, python-dateutil -, pyyaml -, python -, runCommand +{ + lib, + buildPythonPackage, + dnspython, + fetchFromGitHub, + fqdn, + idna, + natsort, + pytestCheckHook, + python-dateutil, + python3, + pythonOlder, + pyyaml, + runCommand, + setuptools, }: buildPythonPackage rec { pname = "octodns"; - version = "1.4.0"; + version = "1.9.1"; pyproject = true; disabled = pythonOlder "3.8"; @@ -24,15 +25,15 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "octodns"; repo = "octodns"; - rev = "v${version}"; - hash = "sha256-l4JGodbUmFxHFeEaxgClEozHcbyYP0F2yj5gDqV88IA="; + rev = "refs/tags/v${version}"; + hash = "sha256-5EKa5G1rX/BRMMpGd861qTaACa2tBgNrKX52uJPV+N8="; }; - nativeBuildInputs = [ + build-system = [ setuptools ]; - propagatedBuildInputs = [ + dependencies = [ dnspython fqdn idna @@ -47,18 +48,21 @@ buildPythonPackage rec { pythonImportsCheck = [ "octodns" ]; - passthru.withProviders = ps: let - pyEnv = python.withPackages ps; - in runCommand "octodns-with-providers" { } '' - mkdir -p $out/bin - ln -st $out/bin ${pyEnv}/bin/octodns-* - ''; + passthru.withProviders = + ps: + let + pyEnv = python3.withPackages ps; + in + runCommand "octodns-with-providers" { } '' + mkdir -p $out/bin + ln -st $out/bin ${pyEnv}/bin/octodns-* + ''; meta = with lib; { description = "Tools for managing DNS across multiple providers"; homepage = "https://github.com/octodns/octodns"; changelog = "https://github.com/octodns/octodns/blob/${src.rev}/CHANGELOG.md"; license = licenses.mit; - maintainers = [ ]; + maintainers = [ maintainers.anthonyroussel ]; }; } diff --git a/pkgs/tools/networking/octodns/providers/powerdns/default.nix b/pkgs/tools/networking/octodns/providers/powerdns/default.nix index d1c39b628da1..8278e6ea8537 100644 --- a/pkgs/tools/networking/octodns/providers/powerdns/default.nix +++ b/pkgs/tools/networking/octodns/providers/powerdns/default.nix @@ -11,7 +11,7 @@ buildPythonPackage rec { pname = "octodns-powerdns"; - version = "0.0.5"; + version = "0.0.7"; pyproject = true; disabled = pythonOlder "3.8"; @@ -19,15 +19,15 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "octodns"; repo = "octodns-powerdns"; - rev = "v${version}"; - hash = "sha256-jt0+JnpCgvsoqMcC9mANX7uq2WPTiI2JQjwQi7LGWj0="; + rev = "refs/tags/v${version}"; + hash = "sha256-wa/SHyTfj+iHnTq8t+3yzyGn+YULOdI88Aii16qPwPM="; }; - nativeBuildInputs = [ + build-system = [ setuptools ]; - propagatedBuildInputs = [ + dependencies = [ octodns requests ];