diff --git a/pkgs/tools/admin/lexicon/default.nix b/pkgs/tools/admin/lexicon/default.nix index c5308c9de717..c17f75127416 100644 --- a/pkgs/tools/admin/lexicon/default.nix +++ b/pkgs/tools/admin/lexicon/default.nix @@ -7,13 +7,13 @@ with python3.pkgs; buildPythonApplication rec { pname = "lexicon"; - version = "3.9.4"; + version = "3.11.7"; format = "pyproject"; src = fetchFromGitHub { owner = "AnalogJ"; repo = pname; - rev = "v${version}"; + rev = "refs/tags/v${version}"; hash = "sha256-TySgIxBEl2RolndAkEN4vCIDKaI48vrh2ocd+CTn7Ow="; }; @@ -23,32 +23,54 @@ buildPythonApplication rec { propagatedBuildInputs = [ beautifulsoup4 - boto3 cryptography - dnspython - future - localzone - oci - pynamecheap + importlib-metadata pyyaml requests - softlayer tldextract - transip - xmltodict - zeep ]; + passthru.optional-dependencies = { + route53 = [ + boto3 + ]; + localzone = [ + localzone + ]; + softlayer = [ + softlayer + ]; + gransy = [ + zeep + ]; + ddns = [ + dnspython + ]; + oci = [ + oci + ]; + full = [ + boto3 + dnspython + localzone + oci + softlayer + zeep + ]; + }; + nativeCheckInputs = [ mock pytestCheckHook pytest-xdist vcrpy - ]; + ] ++ passthru.optional-dependencies.full; disabledTestPaths = [ # Tests require network access "lexicon/tests/providers/test_auto.py" + # Tests require an additional setup + "lexicon/tests/providers/test_localzone.py" ]; pythonImportsCheck = [