Skip to content

Commit 8c2c390

Browse files
octodns: 1.4.0 -> 1.9.1
octodns/octodns@v1.4.0...v1.9.1
1 parent c083125 commit 8c2c390

File tree

1 file changed

+29
-25
lines changed

1 file changed

+29
-25
lines changed

pkgs/tools/networking/octodns/default.nix

Lines changed: 29 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,39 @@
1-
{ lib
2-
, buildPythonPackage
3-
, fetchFromGitHub
4-
, pythonOlder
5-
, setuptools
6-
, pytestCheckHook
7-
, dnspython
8-
, fqdn
9-
, idna
10-
, natsort
11-
, python-dateutil
12-
, pyyaml
13-
, python
14-
, runCommand
1+
{
2+
lib,
3+
buildPythonPackage,
4+
dnspython,
5+
fetchFromGitHub,
6+
fqdn,
7+
idna,
8+
natsort,
9+
pytestCheckHook,
10+
python-dateutil,
11+
python3,
12+
pythonOlder,
13+
pyyaml,
14+
runCommand,
15+
setuptools,
1516
}:
1617

1718
buildPythonPackage rec {
1819
pname = "octodns";
19-
version = "1.4.0";
20+
version = "1.9.1";
2021
pyproject = true;
2122

2223
disabled = pythonOlder "3.8";
2324

2425
src = fetchFromGitHub {
2526
owner = "octodns";
2627
repo = "octodns";
27-
rev = "v${version}";
28-
hash = "sha256-l4JGodbUmFxHFeEaxgClEozHcbyYP0F2yj5gDqV88IA=";
28+
rev = "refs/tags/v${version}";
29+
hash = "sha256-5EKa5G1rX/BRMMpGd861qTaACa2tBgNrKX52uJPV+N8=";
2930
};
3031

31-
nativeBuildInputs = [
32+
build-system = [
3233
setuptools
3334
];
3435

35-
propagatedBuildInputs = [
36+
dependencies = [
3637
dnspython
3738
fqdn
3839
idna
@@ -47,12 +48,15 @@ buildPythonPackage rec {
4748

4849
pythonImportsCheck = [ "octodns" ];
4950

50-
passthru.withProviders = ps: let
51-
pyEnv = python.withPackages ps;
52-
in runCommand "octodns-with-providers" { } ''
53-
mkdir -p $out/bin
54-
ln -st $out/bin ${pyEnv}/bin/octodns-*
55-
'';
51+
passthru.withProviders =
52+
ps:
53+
let
54+
pyEnv = python3.withPackages ps;
55+
in
56+
runCommand "octodns-with-providers" { } ''
57+
mkdir -p $out/bin
58+
ln -st $out/bin ${pyEnv}/bin/octodns-*
59+
'';
5660

5761
meta = with lib; {
5862
description = "Tools for managing DNS across multiple providers";

0 commit comments

Comments
 (0)