Unverified Commit 51da7d65 authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

Merge pull request #218619 from fabaff/lexicon-fix

lexicon: 3.9.4 -> 3.11.7
parents bd188f17 a2a49666
Loading
Loading
Loading
Loading
+36 −13
Original line number Diff line number Diff line
@@ -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
    importlib-metadata
    pyyaml
    requests
    tldextract
  ];

  passthru.optional-dependencies = {
    route53 = [
      boto3
    ];
    localzone = [
      localzone
    ];
    softlayer = [
      softlayer
    ];
    gransy = [
      zeep
    ];
    ddns = [
      dnspython
    ];
    oci = [
      oci
    ];
    full = [
      boto3
      dnspython
    future
      localzone
      oci
    pynamecheap
    pyyaml
    requests
      softlayer
    tldextract
    transip
    xmltodict
      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 = [
@@ -58,6 +80,7 @@ buildPythonApplication rec {
  meta = with lib; {
    description = "Manipulate DNS records of various DNS providers in a standardized way";
    homepage = "https://github.com/AnalogJ/lexicon";
    changelog = "https://github.com/AnalogJ/lexicon/blob/v${version}/CHANGELOG.md";
    license = licenses.mit;
    maintainers = with maintainers; [ flyfloh ];
  };