Merge pull request #259800 from marsam/lexicon-python-packages

lexicon: use toPythonApplication of the python module

authored by

Mario Rodas and committed by
GitHub
0e723ffd f098c163

+1 -88
-87
pkgs/tools/admin/lexicon/default.nix
··· 1 - { lib 2 - , python3 3 - , fetchFromGitHub 4 - }: 5 - 6 - with python3.pkgs; 7 - 8 - buildPythonApplication rec { 9 - pname = "lexicon"; 10 - version = "3.11.7"; 11 - format = "pyproject"; 12 - 13 - src = fetchFromGitHub { 14 - owner = "AnalogJ"; 15 - repo = pname; 16 - rev = "refs/tags/v${version}"; 17 - hash = "sha256-TySgIxBEl2RolndAkEN4vCIDKaI48vrh2ocd+CTn7Ow="; 18 - }; 19 - 20 - nativeBuildInputs = [ 21 - poetry-core 22 - ]; 23 - 24 - propagatedBuildInputs = [ 25 - beautifulsoup4 26 - cryptography 27 - importlib-metadata 28 - pyyaml 29 - requests 30 - tldextract 31 - ]; 32 - 33 - passthru.optional-dependencies = { 34 - route53 = [ 35 - boto3 36 - ]; 37 - localzone = [ 38 - localzone 39 - ]; 40 - softlayer = [ 41 - softlayer 42 - ]; 43 - gransy = [ 44 - zeep 45 - ]; 46 - ddns = [ 47 - dnspython 48 - ]; 49 - oci = [ 50 - oci 51 - ]; 52 - full = [ 53 - boto3 54 - dnspython 55 - localzone 56 - oci 57 - softlayer 58 - zeep 59 - ]; 60 - }; 61 - 62 - nativeCheckInputs = [ 63 - mock 64 - pytestCheckHook 65 - pytest-xdist 66 - vcrpy 67 - ] ++ passthru.optional-dependencies.full; 68 - 69 - disabledTestPaths = [ 70 - # Tests require network access 71 - "lexicon/tests/providers/test_auto.py" 72 - # Tests require an additional setup 73 - "lexicon/tests/providers/test_localzone.py" 74 - ]; 75 - 76 - pythonImportsCheck = [ 77 - "lexicon" 78 - ]; 79 - 80 - meta = with lib; { 81 - description = "Manipulate DNS records of various DNS providers in a standardized way"; 82 - homepage = "https://github.com/AnalogJ/lexicon"; 83 - changelog = "https://github.com/AnalogJ/lexicon/blob/v${version}/CHANGELOG.md"; 84 - license = licenses.mit; 85 - maintainers = with maintainers; [ flyfloh ]; 86 - }; 87 - }
+1 -1
pkgs/top-level/all-packages.nix
··· 5856 5856 5857 5857 lexend = callPackage ../data/fonts/lexend { }; 5858 5858 5859 - lexicon = callPackage ../tools/admin/lexicon { }; 5859 + lexicon = with python3Packages; toPythonApplication dns-lexicon; 5860 5860 5861 5861 lenpaste = callPackage ../servers/lenpaste { }; 5862 5862