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

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

65 lines
1.1 KiB
Nix
Raw Normal View History

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