nixpkgs/pkgs/tools/admin/lexicon/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

88 lines
1.5 KiB
Nix
Raw Normal View History

2020-01-25 12:45:27 +00:00
{ lib
2020-10-04 15:51:17 +00:00
, python3
2020-01-25 12:45:27 +00:00
, fetchFromGitHub
}:
2022-03-11 22:49:00 +00:00
with python3.pkgs;
2020-01-25 12:45:27 +00:00
2020-10-04 15:51:17 +00:00
buildPythonApplication rec {
pname = "lexicon";
version = "3.11.7";
2020-10-04 15:56:24 +00:00
format = "pyproject";
2020-01-25 12:45:27 +00:00
src = fetchFromGitHub {
owner = "AnalogJ";
repo = pname;
rev = "refs/tags/v${version}";
2022-03-11 22:49:00 +00:00
hash = "sha256-TySgIxBEl2RolndAkEN4vCIDKaI48vrh2ocd+CTn7Ow=";
2020-01-25 12:45:27 +00:00
};
2020-10-04 15:56:24 +00:00
nativeBuildInputs = [
2022-01-10 08:28:35 +00:00
poetry-core
2020-10-04 15:56:24 +00:00
];
2020-10-04 15:51:17 +00:00
propagatedBuildInputs = [
beautifulsoup4
cryptography
importlib-metadata
2020-10-04 15:51:17 +00:00
pyyaml
requests
tldextract
];
passthru.optional-dependencies = {
route53 = [
boto3
];
localzone = [
localzone
];
softlayer = [
softlayer
];
gransy = [
zeep
];
ddns = [
dnspython
];
oci = [
oci
];
full = [
boto3
dnspython
localzone
oci
softlayer
zeep
];
};
nativeCheckInputs = [
2020-10-04 15:51:17 +00:00
mock
2022-01-10 08:28:35 +00:00
pytestCheckHook
pytest-xdist
2020-10-04 15:51:17 +00:00
vcrpy
] ++ passthru.optional-dependencies.full;
2020-10-04 15:51:17 +00:00
2022-01-10 08:28:35 +00:00
disabledTestPaths = [
# Tests require network access
"lexicon/tests/providers/test_auto.py"
# Tests require an additional setup
"lexicon/tests/providers/test_localzone.py"
2022-01-10 08:28:35 +00:00
];
pythonImportsCheck = [
"lexicon"
];
2020-10-04 15:51:17 +00:00
2020-01-25 12:45:27 +00:00
meta = with lib; {
2022-01-10 08:28:35 +00:00
description = "Manipulate DNS records of various DNS providers in a standardized way";
homepage = "https://github.com/AnalogJ/lexicon";
2023-02-27 14:10:45 +00:00
changelog = "https://github.com/AnalogJ/lexicon/blob/v${version}/CHANGELOG.md";
2020-01-25 12:45:27 +00:00
license = licenses.mit;
2022-01-10 08:28:35 +00:00
maintainers = with maintainers; [ flyfloh ];
2020-01-25 12:45:27 +00:00
};
}