1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 11:40:45 +00:00
nixpkgs/pkgs/tools/admin/lexicon/default.nix
2022-03-11 16:49:00 -06:00

65 lines
1.1 KiB
Nix

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