2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
2020-10-07 09:15:18 +00:00
|
|
|
, python3
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
with python3.pkgs;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-10-07 09:15:18 +00:00
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "lexicon";
|
2022-03-30 09:31:56 +00:00
|
|
|
version = "3.9.4";
|
2020-10-07 09:15:18 +00:00
|
|
|
format = "pyproject";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "AnalogJ";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-03-30 09:31:56 +00:00
|
|
|
hash = "sha256-TySgIxBEl2RolndAkEN4vCIDKaI48vrh2ocd+CTn7Ow=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-10-07 09:15:18 +00:00
|
|
|
nativeBuildInputs = [
|
2022-01-13 20:06:32 +00:00
|
|
|
poetry-core
|
2020-10-07 09:15:18 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
beautifulsoup4
|
|
|
|
boto3
|
|
|
|
cryptography
|
|
|
|
dnspython
|
|
|
|
future
|
|
|
|
localzone
|
2022-01-13 20:06:32 +00:00
|
|
|
oci
|
2020-10-07 09:15:18 +00:00
|
|
|
pynamecheap
|
|
|
|
pyyaml
|
|
|
|
requests
|
|
|
|
softlayer
|
|
|
|
tldextract
|
|
|
|
transip
|
|
|
|
xmltodict
|
|
|
|
zeep
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
mock
|
2022-01-13 20:06:32 +00:00
|
|
|
pytestCheckHook
|
2021-07-24 12:14:16 +00:00
|
|
|
pytest-xdist
|
2020-10-07 09:15:18 +00:00
|
|
|
vcrpy
|
|
|
|
];
|
|
|
|
|
2022-01-13 20:06:32 +00:00
|
|
|
disabledTestPaths = [
|
|
|
|
# Tests require network access
|
|
|
|
"lexicon/tests/providers/test_auto.py"
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"lexicon"
|
|
|
|
];
|
2020-10-07 09:15:18 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
2022-01-13 20:06:32 +00:00
|
|
|
description = "Manipulate DNS records of various DNS providers in a standardized way";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/AnalogJ/lexicon";
|
|
|
|
license = licenses.mit;
|
2022-01-13 20:06:32 +00:00
|
|
|
maintainers = with maintainers; [ flyfloh ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|